java - Writing MongoDB Queries using "in" modifier -


How can we write queries in mongodb which is equivalent to the internal selection SQL query.

  Select the workflow from field 2, in Field ID (select idField from usersTable) in the ID   

DB should have the same number of hits.

The above examples In the document, I have Cautions 1 and 2 in the column with 2 documents.

  db.users.find ({Warning: {$ in: [1,2]}} )   

This will give me two documents first.

Comments