#updating nested object with optional id field

1 messages · Page 1 of 1 (latest)

dusk saddle
#

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?

sturdy sparrow
#

@dusk saddle can you paste the body of the actual mutation?