We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b487174 commit c21c601Copy full SHA for c21c601
README.md
@@ -1491,7 +1491,16 @@ db.inventory.find( { tags: "red" } )
1491
<b><a href="#">↥ back to top</a></b>
1492
</div>
1493
1494
-#### Q. ***How to find MongoDB records where array field is not empty?***
+## Q. ***How to find MongoDB records where array field is not empty?***
1495
+
1496
+```js
1497
+db.inventory.find({ pictures: { $exists: true, $ne: [] } })
1498
+```
1499
1500
+<div align="right">
1501
+ <b><a href="#">↥ back to top</a></b>
1502
+</div>
1503
1504
#### Q. ***How to get the last N records from find?***
1505
#### Q. ***Explain relationships in mongodb?***
1506
#### Q. ***What is use of capped collection in MongoDB?***
0 commit comments