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