syarifS
Convex Community17mo ago
2 replies
syarif

updating nested object with optional id field

I have scheme like this
users:{
  nib:v.object({
    no:v.string(),
    consultant_id:v.optional(v.id("users))
  })
}

if I perform patch with the same value of nib.no but different value of nib.consultant_id, the nib.consultant_id is not updated in the database. only if the nib.no is different then the both nib.no and nib.consultant_id are updated

any one know why? if this is limitation, how to better design my schema?
Was this page helpful?