punn
punn2y ago

Schema Validation

Can a null value not be passed to v.optional(v.number())?
1 Reply
lee
lee2y ago
that's correct. if you want the document to not have a field, you can leave it out or pass it as undefined to insert/patch/replace. if you want to store null, the schema would be v.union(v.null(), v.number())

Did you find this page helpful?