Native Object Client
    Preparing search index...

    Function createNativeObject

    • Creates a native object

      Type Parameters

      • T = any

      Parameters

      • uri: string & $brand<"typeUri">
      • body: unknown
      • opts: Options = {}

      Returns Promise<T>

      The following example shows the creation of a my-type native object instance:

      import { createNativeObject, typeUriString } from "@contextual-io/native-object-client"

      const newObject = await createNativeObject(
      typeUriString("my-type"),
      {
      "foo": "bar",
      },
      )