Google-cloud-node: Get kinds list from datastore

Created on 24 Jun 2016  路  5Comments  路  Source: googleapis/google-cloud-node

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

thanks in advance

question datastore

All 5 comments

@pcostell

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...

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

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.

@pcostell Great!
Thanks for the answer!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicolasgarnier picture nicolasgarnier  路  4Comments

jmdobry picture jmdobry  路  3Comments

stephenplusplus picture stephenplusplus  路  4Comments

arbesfeld picture arbesfeld  路  4Comments

VikramTiwari picture VikramTiwari  路  3Comments