【发布时间】:2017-06-26 01:23:27
【问题描述】:
您能否在 Google Cloud Datastore 查询中过滤具有空数组的属性?
const query = datastore.createQuery('Task')
.filter('arrayValue', '=', '');
【问题讨论】:
标签: node.js google-cloud-datastore google-cloud-platform
您能否在 Google Cloud Datastore 查询中过滤具有空数组的属性?
const query = datastore.createQuery('Task')
.filter('arrayValue', '=', '');
【问题讨论】:
标签: node.js google-cloud-datastore google-cloud-platform
目前没有过滤空数组的方法。
另一种方法是将空数组设置为“null”类型,然后您将能够过滤它们。
【讨论】: