Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.createCollection("publishers", {
- validator: {
- $and: [
- { name: { $type: "string" } },
- { $and: [ { email_address: { $exists: true } }, { email_address: { $type: "string" } } ] },
- { status: { $in: [ 1, 0 ] } },
- { $and: [ { created_at: { $exists: true } }, { created_at: { $type: "int" } } ] }
- ]
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement