Skip to content

"distinct" queries aren't unique #647

Closed
@harryjamesuk

Description

@harryjamesuk

Hi there,

It seems when I try to create a distinct query with the SDK it doesn't behave as such, and results returned are not unique.

Example code

var query = new Parse.Query("Score");
query.distinct("user");
query.find({useMasterKey: true}).then(function(results) {
   // results does not return unique users :(
});

The REST API behaves as expected here when performing the same query.

Running SDK v2.0.1, parse-server v3.0.0, node v8.11.4, mongo v4.0.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions