Skip to content

Get kinds list from datastore #1390

Description

@mik115

Hi,
I'd like to retrieve a complete list of kinds from datastore.
There' s any way using gcloud-node?

thanks in advance

Activity

  1. stephenplusplus commented on Jun 24, 2016

    @stephenplusplus
    Contributor
  2. jgeewax commented on Jun 24, 2016

    @jgeewax
    Contributor

    AFAIK there actually isn't a reliable way to do that in an authoritative way. I believe we have a cache of the Kinds (updated every so often, for the UI), but it's not a reliable strongly-consistent method of figuring out which kinds are in your Datastore...

  3. mik115 commented on Jun 24, 2016

    @mik115
    Author

    hi,
    thanks @jgeewax for the quick reply.
    There's any intention to implement this basic functionality in the future? and if the response is yes there are any deadlines?

    thanks

  4. pcostell commented on Jun 27, 2016

    @pcostell
    Contributor

    You can do this with a metadata query.

    There is a snippet there that shows how to get a list of all kinds. This queries your actual data so it will be up-to-date, but as with other global queries it will be impacted by eventual consistency.

  5. mik115 commented on Jun 27, 2016

    @mik115
    Author

    @pcostell Great!
    Thanks for the answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions