The query to create a collection with document is as follows. db.yourCollectionName.distinct (yourFieldName) To understand the above syntax, let us create a collection with document. Here we discuss syntax, parameter, the working of distinct command with examples to implement. You can use distinct () method in MongoDB to get distinct record values.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |