Distinct Query in MongoDB #6066
Unanswered
harshsavasil
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
Can anyone please help me with the syntax of finding the distinct values of a field in a MongoDB collection? I have tried two queries, but neither of them helped.
{ "collection": "frequency_based_recurring_orders", "query": { "asset": "***" }, "distinct": "currency" }
{ "collection": "frequency_based_recurring_orders", "distinct": { "currency": 1 } }
Beta Was this translation helpful? Give feedback.
All reactions