question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How does Cypher in NeoVis.NEOVIS_ADVANCED_CONFIG work?

See original GitHub issue

My idea is that if the nodes belong to a community, then the edge length between them will be short. I try

relationship: {
    EdgeLabel: {
        [NeoVis.NEOVIS_ADVANCED_CONFIG]: {
            cypher: {
                length: "match (n)--(m) where n.gid=m.gid return 1000" 
            },
}

But it doesn’t work. Trying MATCH (n) WHERE id(n) = $id match (n)--(m) where n.gid=m.gid return 1000 doesn’t work too

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22

github_iconTop GitHub Comments

1reaction
thebestnomcommented, Oct 29, 2021

Also,make sure that the cypher in cypher advance block uses $id, if you don’t all the lengthes would be the same 😅

1reaction
ooker777commented, Oct 29, 2021

ah I see. The return needs to be a string or number, not an array

Read more comments on GitHub >

github_iconTop Results From Across the Web

NeovisConfig | neovis.js
Documentation for neovis.js. ... initialCypher: "MATCH (n)-[r:INTERACTS]->(m) RETURN n,r,m" ... The Cypher query that will get the data ...
Read more >
Graph Visualization with Neo4j Using Neovis.js
This tool is Neovis.js and is used for creating JavaScript based graph ... we can run PageRank over this part of the graph...
Read more >
neovis.js 2.0: Neo4j + vis.js == Graph Visualizations in The ...
It can work with/without a access to shared memory. It depends on shared_preload_libraries config. When plpgsql_check was initialized by ...
Read more >
Doctor.ai with Alan and Neovis.js | by Sixing Huang - Medium
From Google's Infoboxes to Amazon Music, we can see knowledge graphs at work. In the massive healthcare industry, knowledge graphs can make medical...
Read more >
Neo4j NeoVis trouble - Stack Overflow
Please check the below code.. The cypher works for me, First test with some simple cypher to test whether you are connecting to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found