Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get max id in mongodb python

> db.getElementWithMaxIdDemo.find().sort({_id:-1}).limit(1).pretty()
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #max #id #mongodb #python
ADD COMMENT
Topic
Name
1+5 =