Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.users.insert({id: 1,user: {firstname:"John",lastname:"Cena",email:["jc@wwe.com","jc1@wwe.com"],password:"YouCantSeeMe",address:{street:"34 some street", country:"USA"}}})
- val query1 = BSONDocument("user.firstname"->user.firstName)
- val query2 = BSONDocument("user"-> BSONDocument("firstname"->user.firstName))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement