我正在使用 neovis.js 版本 2.1.0 和 neo4j 版本 5.12.0。当我尝试按照示例访问时,neo4j服务器返回以下错误:
Neo4jError: The property existence syntax `... exists(variable.property)` is no longer supported. Please use `variable.property IS NOT NULL` instead. (line 1, column 17 (offset: 16))
"MATCH (n) WHERE exists(n.pagerank)"
这些版本之间是否存在已知的不兼容性?
我的vue3.js代码如下:
<template>
<h3>graph demo</h3>
<div id="graph"></div>
</template>
<script setup>
import NeoVis from "neovis.js";
import { onMounted } from "vue";
const config = ref({
containerId: "graph",
neo4j: {
serverUrl: "bolt://localhost:7687",
serverUser: "neo4j",
serverPassword: "neo4j_password",
},
labels: {},
relationships: {},
initialCypher: "MATCH (n) return n",
});
nMounted(() => {
const vis = new NeoVis(config);
vis.render();
});
</script>
<style scoped></style>