Skip to content
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

I don't understand how to use query.groupBy #1426

Closed
CVarisco opened this issue Jul 13, 2016 · 1 comment
Closed

I don't understand how to use query.groupBy #1426

CVarisco opened this issue Jul 13, 2016 · 1 comment
Assignees
Labels
api: datastore Issues related to the Datastore API. type: question Request for information or clarification. Not an issue.

Comments

@CVarisco
Copy link

Hi,

I've used query.groupBy as per example on a simple get operation (list all entities of a kind grouped by property):
groupBy(['prop']);

With one arguments I have the complete list of kind without any grouping applied.
With two arguments I have this response:

{
  "code": 412,
  "metadata": {
    "_internal_repr": {}
  }
}

Can you please help me understand how am I supposed to use the groupBy API?

@stephenplusplus
Copy link
Contributor

I think this is a matter of setting the correct indexes to support that query. Maybe a search on the Datastore docs as well as this repo's issues will give some ideas. I'm going to close as this isn't a bug with our library. StackOverflow would likely be a better place for this question. Feel free to let me know if you can't find any answers, and we will bug the Datastore team :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants