Which command can be used to create a schema validation rule in MongoDB? - Study24x7
Social learning Network
5 followers study24x7 11 Dec 2024 10:55 AM study24x7 study24x7

Which command can be used to create a schema validation rule in MongoDB?

A

db.createCollection("users", {validator: {...}})

B

db.users.setSchema({...})

C

db.users.validateSchema({...})

D

db.schema.create({...})

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles