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 …
↧