I am a complete mongo newbie. I am using mongo hub for mac. I need to query the for following json -
{ "_id" : ObjectId( "abcd" ),
"className" : "com.myUser",
"reg" : 12345,
"test" : [ 
{ "className" : "com.abc",
  "testid" : "pqrs" } ] }
and find records where testid is pqrs. How would I go about doing that?
shareimprove this question
up vote27down voteaccepted
You can type {'test.testid': 'pqrs'} in the query field of Mongo Hub.
shareimprove this answer
1 
How to query based on _id too ? – Balaji Boggaram Ramanarayan Aug 31 '16 at 6:15