Quantcast
Channel: DigitalOcean Community Tutorials
Viewing all articles
Browse latest Browse all 136

MongoDB distinct example using Mongo Shell and Java Driver

$
0
0
The distinct method returns a set of discrete values for the field specified as the input argument. This method returns an array of discrete values. The syntax for distinct method is field: A string type for which the discrete values are to be returned. query: Specifies the document from which …

Viewing all articles
Browse latest Browse all 136

Trending Articles