Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mongodb get first 10 records

#I get the first ten documents from the collection
query = db.collection.find({
      #whatever
  }).limit(10);
 
PREVIOUS NEXT
Tagged: #mongodb #records
ADD COMMENT
Topic
Name
4+3 =