Skip to content

Commit c21c601

Browse files
committed
Update README.md
1 parent b487174 commit c21c601

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,16 @@ db.inventory.find( { tags: "red" } )
14911491
<b><a href="#">↥ back to top</a></b>
14921492
</div>
14931493
1494-
#### Q. ***How to find MongoDB records where array field is not empty?***
1494+
## 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+
14951504
#### Q. ***How to get the last N records from find?***
14961505
#### Q. ***Explain relationships in mongodb?***
14971506
#### Q. ***What is use of capped collection in MongoDB?***

0 commit comments

Comments
 (0)