azure-cosmosdb - 在 Azure Cosmos DB Graph 查询中定义变量
问题描述
我正在努力使用 Gremlin.NET 在 Azure Cosmos DB Graph 上运行分页脚本:
t = g.V().hasLabel('person');[]
t.next(2)
t.next(2)
它来自Tinkerpop 页面,其中描述了如何重用遍历实例以避免加载整个图。
不幸的是,在 Gremlin .NET 中,我得到:
ExceptionType : GraphSyntaxException
ExceptionMessage :
Gremlin query syntax error: Unsupported groovy expression kind: t=g.V().hasLabel('person') @ line 1, column 1.
Azure Cosmos DB Graph 可能不支持这种结构,但我找不到任何可以证明这一点的材料。
解决方案
推荐阅读
- node.js - 在 Windows 中运行 React js 应用程序时出错
- c - 为什么要明确调用 stat64 ?
- r - 在 validObject(.Object) 中接收错误,在 rstan 中使用 ulam 运行 MCMC 模型时出现数字类问题
- xml - 提取 XSD 枚举值并在另一个 XML 文件中使用它
- windows - ffmpeg“filtergraph join”使用通道副本并保留输入通道配置(格式 - s32_le)
- c# - 统一项目架构?
- blazor - 在组件中单击时执行功能
- reactjs - 使用 react-router-dom,BrowserRouter 永远不会工作,而 HashRouter 有时只能工作。为什么?
- vue.js - 如何从 axios 获取响应中获取响应头?
- python - TypeError: 'tuple' 和 'int' 的实例之间不支持'>='