Skip to content

Invalid parameter for query: distinct #4857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liangmark opened this issue Jun 28, 2018 · 6 comments
Closed

Invalid parameter for query: distinct #4857

liangmark opened this issue Jun 28, 2018 · 6 comments
Assignees

Comments

@liangmark
Copy link

i have installed [email protected] on [email protected], when i use 'distinct' to query, it does not work.

snip20180628_7

@acinader
Copy link
Contributor

acinader commented Jun 28, 2018

my guess is that you need to change it to --data-urlencode '{"distinct": "outId"}'

I will test it out in an hour or so to confirm. If I am correct, then I'll update the docs here:
http://docs.parseplatform.org/rest/guide/

@acinader acinader self-assigned this Jun 28, 2018
@acinader
Copy link
Contributor

@liangmark i can reproduce your issue. looking into.

@liangmark
Copy link
Author

@acinader Thank you very much.

@acinader
Copy link
Contributor

acinader commented Jun 29, 2018

@liangmark the documentation is just wrong and I'll fix it.

The path in your request: /parse/classes/TestTable

Needs to be: /parse/aggregate/TestTable

sorry 'bout that.

@acinader
Copy link
Contributor

acinader commented Jun 29, 2018

actually, the docs are correct. you just had it wrong and I transcribed what you had. thanks, now I understand the rest API much better ;)

@liangmark
Copy link
Author

I got what I want,Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants