top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

MongoDb: Distinct query for arrays as a whole rather than the array elements

+1 vote
334 views

I am storing color values as an array of 3 floats and want to query for distinct colors. Is there a way to make .distinct look for distinct arrays rather than values within the arrays?

posted Nov 6, 2015 by Deepankar Dubey

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes

I have couple of databases named as abc, xyz. If I want to use database "xyz" then type command "use xyz". Command in console show output as "switched to db xyz" but still an user uses commands start with "db" rather than actual name "xyz" why ?

0 votes

I want to retrieve and display the content as text stored in mongodb database using the mongodb id which is automatically assigned but found difficult to how to start I made connection with mongodb and nodejs server?

...