syarif
syarif
CCConvex Community
Created by syarif on 9/4/2024 in #support-community
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))
})
}
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?
3 replies