Skip to content

Commit d188dba

Browse files
committed
MongoDB Coding Practice
1 parent 59a85f9 commit d188dba

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

mongodb-code.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# MongoDB Coding Practice
2+
3+
## Q. ***Mention the command to insert a document in a database called school and collection called persons?***
4+
## Q. ***Mention the command to check whether you are on the master server or not?***
5+
## Q. ***How can I combine data from multiple collections into one collection?***
6+
## Q. ***How do I perform the SQL JOIN equivalent in MongoDB?***
7+
## Q. ***How to query MongoDB with %like%?***
8+
## Q. ***Find objects between two dates MongoDB?***
9+
## Q. ***How to query MongoDB with “like”?***
10+
## Q. ***Update MongoDB field using value of another field***
11+
## Q. ***How to check if a field contains a substring?***
12+
## Q. ***How to get the last N records from find?***
13+
## Q. ***MongoDB relationships. What to use - embed or reference?***
14+
## Q. ***How to remove a field completely from a MongoDB document?***
15+
## Q. ***By default, MongoDB writes and reads data from both primary and secondary replica sets. True or False.***
16+
## Q. ***How to find MongoDB records where array field is not empty?***
17+
## Q. ***Is it possible to update MongoDB field using value of another field?***
18+
## Q. ***How to find document with array that contains a specific value?***
19+
20+
<div align="right">
21+
<b><a href="#">↥ back to top</a></b>
22+
</div>

0 commit comments

Comments
 (0)