The following example shows the patching of a my-type native object instance with a primary key of foo:
import { patchNativeObject, primaryKeyUriString } from "@contextual-io/native-object-client"
const patchedObject = await patchNativeObject(
primaryKeyUriString("my-type/foo"),
[
{ "op": "incr", "path": "/someField", "value": 2 },
],
)
Patches a native object