Gorka CesiumG
Convex Community3y ago
22 replies
Gorka Cesium

patch nested object

items: defineTable(
    v.object({
      quote: v.id("quotes"),
      tag: v.literal("ItemType1")
      value: v.object({ 
        name: v.string()
        reference: v.string()
      })
    })
)


how can I write a mutation to patch value without having to input all the fields?
for example
patch(itemId, {value: {name:newName}})
Was this page helpful?