Mongodb Classroom image

Anil  Bist / Professional / DataBase

To post your Question Join Classroom
Lesson Topics's No:-  ||

Querying for Data (Getting Started)

Basic querying examples


db. collection . find ( { } );

retrieve documents in a collection using a condition ( similar to WHERE in MYSQL )

db. collection.find  ( { key: value } );
    db. users . find ( { email: "" } );


retrieve documents in a collection using Boolean conditions (Query Operators) 


more boolean operations and examples can be found here

NOTE:  find()  will keep on searching the collection even if a document match has been found , therefore it is inefficient when used in a large collection , however by carefully modeling your data and/or using indexes you can increase the efficiency of find()

Anil  Bist

Skills    Mongodb

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India

in 2006, i Join a web development company in Bangalore and start work on "Ruby on Rail" this is my first web development framework and we worked in this framework and develop four to five project after some time , I moved to JEE/Sturst frame work,

After some time i decided that now times come and I have to go on in my own way and I started a company name is "Soarlogic&q


  Students (0)