fetch documents by using the comparison operators like 'lt'(less than), 'lte'(less than equals), 'gt'(greater than)

PHOTO EMBED

Sat May 27 2023 12:26:43 GMT+0000 (Coordinated Universal Time)

Saved by @joseleal #javascript

use('myworlddb')
 
//{} empty fetches all documents
db.person.find({age:{$gt:30}})
content_copyCOPY

https://www.learmoreseekmore.com/2022/03/demo-on-mongodb-running-on-docker-and-visual-studio-code-mongodb-extension-playground.html