【问题标题】:Are subqueries supported in Memgraph?Memgraph 是否支持子查询?
【发布时间】:2023-01-30 21:04:04
【问题描述】:

我正在使用 Memgraph Platform 2.6.4,我想在查询中调用子查询。例如:

UNWIND [0, 1, 2] AS n
CALL {
  RETURN 'hi' AS returnValue
}
RETURN returnValue

我在 Memgraph 文档中找不到类似的内容,但在 Cypher best practices blog post 中看到了它。有没有办法在 Memgraph 中运行子查询?

【问题讨论】:

    标签: memgraphdb


    【解决方案1】:

    不幸的是,Memgraph 不支持子查询,但如果您有一个特定的查询,也许您可​​以使用其他结构重写它,或者您可以实现一个自定义查询模块。这是关于在 Python 中实现自定义查询模块的 how-to guide,尽管您可以使用 C/C++、Rust 或任何其他可以编译为共享对象库的编程语言来实现。

    【讨论】:

      猜你喜欢
      • 2023-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-29
      • 1970-01-01
      相关资源
      最近更新 更多