在计算引擎上托pipe的nodeJS项目中,在哪里定义datastore-indexes.xml?

我们正在计算引擎上托pipe一个NodeJS应用程序,它使用gcloud-node连接到Google DataStore。 简单的查询运行良好,但与multippleselect复杂的查询正在给出“412:先决条件失败”的错误。 更多细节在“: 多select在谷歌数据存储查询抛出ApiError:Precondition节点失败的错误

我明白这个错误是由于我没有configurationdatastore-indexes.xml。 作为GCP世界的新手。 你能帮我吗我在哪里可以定义我的项目中的datastore-indexes.xml文件。

您也可以使用带有index.yaml文件的gcloud preview app工具来指定索引策略。

例如,如果您需要LoginTimes上的用户和时间戳索引:

 indexes: - kind: LoginTimes properties: - name: user - name: timestamp direction: desc