有在 Node.js 中使用 Google Datastore GQL 的工作示例吗?
文档中的示例包含似乎不存在的 .execute 函数。
https://cloud.google.com/datastore/docs/concepts/gql
因此,我尝试使用常规回调方法,但未选择 GQL 语句。 我尝试过使用 gql_query 和 gqlQuery 作为资源参数名称,但无济于事。
store.datasets.runQuery(
{
"resource":
{
"gqlQuery":
{
"queryString":"SELECT * from Messages LIMIT 50",
"allowLiterals":true
}
}
},
function(err, result, endCursor, apiResponse)
{
...
}