Is there any way to specify default field values in Mongodb 3.6 in the process of creating a collection with db.createCollection()?
The following are not supported in MongoDB’s implementation of JSON Schema:
The keywords: $ref, $schema, default, definitions, format, id
Yoc can check https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#examples
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With