11/24/2023 0 Comments Mongodb compass filter nested object![]() Expected Output for query 2:-get documents with id:- 1 and 5 coz person A has documents 1 & 5 associated with him. Expected Output for query 1:-get documents with id:-1 and 3 Coz only ids 1&3 have Type and Source as A. Click on the Validation tab and insert the following JSON schema to validate our documents. Now, letâs go into the mongodatabase and look at the documents inside the employees collection. I have a video collection that contains all the videos and some related fields, and a collection called users where I store all the users and a list of videos they have completed, including the notes they have placed on the individual video. Example Filter Query 1:-Person: All (i.e A,B,C) Type: A. Replace and with the username and password of the database user that you created.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |