简体   繁体   English

如何使用Node JS从Google Cloud DataStore返回所有实体ID?

[英]How to return all entity ids from google cloud datastore using node js?

我想使用Google Cloud Datastore API列出节点js中的Google Cloud Datastore类型的所有实体ID

You can list all the entity ids with the following syntax if you are using nodeJS and gstore-node 如果您使用的是nodeJS和gstore-node,则可以使用以下语法列出所有实体ID

var query = Model.query().filter("status","=",true).select('__key__');
var list = query.run();

Hope this helps. 希望这可以帮助。

Thanks 谢谢

Its possible but you may end up exhausting your daily quota. 有可能,但您最终可能会耗尽每日配额。 You can retrieve up to 50,000 entities per day. 每天最多可以检索50,000个实体。 If you need a higher quota you'll have to activate billing for your project and set a spending limit. 如果您需要更高的配额,则必须为您的项目激活结算并设置支出限额。 See link below: 请参阅下面的链接:

Pricing and Quota | 定价和配额| Cloud Datastore 云数据存储

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM