【发布时间】:2019-05-13 17:27:16
【问题描述】:
我正在尝试使用适用于 node.js 的 azure table storage SDK 基于时间戳查询 Azure Cosmos DB 表中的实体
我在 DB 中的时间戳如下
在代码中我正在查询创建这样的过滤器
const filter = storage.TableQuery.dateFilter(
"Timestamp",
storage.TableUtilities.QueryComparisons.GREATER_THAN,
new Date(Date.UTC(2019, 0, 1))
);
query = new TableQuery().where(filter);
但是没有为我返回任何结果。
我google了一下,也发现了下面的堆栈溢出问题
nodejs query azure storage table according to timestamp
答案中的两种解决方案都不适合我。
【问题讨论】:
标签: node.js azure timestamp azure-cosmosdb azure-table-storage