In the tutorial, there is an example:
SELECT j FROM things WHERE x=4
The returned document gave just the "j" elements.
What if I want to return "j" element of all the documents (SELECT j FROM things)?
Provide an empty filter/match expression:
db.things.find({}, {j:true})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With