Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-03-2021 12:38 AM
Hello,
I wonder if it is possible in NeoVis to include $param in the initial cypher query something like this:
MATCH (p) WHERE id(p)=toInteger($idParam1) RETURN (n), {
idParam1: id1
}
To fetch the variable id of my web app.
Thank you
Solved! Go to Solution.
03-12-2021 01:10 AM
Hello arturo,
NeoVis does NOT accept params, or better the Javascript driver (neo4j-web.js) doesn't. The params are usable only in the Neo4j-Browser. But you can emulate params by simply using a node label, like (n:param), giving it your value:
merge (n:param{value:25}) with n.value as idParam1 MATCH (p) WHERE id(p)=toInteger(idParam1) RETURN p
Use merge to be able to reuse the node, you could even preset all your possible params and call them by adequate matches.
BTW, I use NeoVis with my own Javascript code to display also images in the direct neighbourhood of my ontology of 12000-nodes
bye
03-12-2021 01:10 AM
Hello arturo,
NeoVis does NOT accept params, or better the Javascript driver (neo4j-web.js) doesn't. The params are usable only in the Neo4j-Browser. But you can emulate params by simply using a node label, like (n:param), giving it your value:
merge (n:param{value:25}) with n.value as idParam1 MATCH (p) WHERE id(p)=toInteger(idParam1) RETURN p
Use merge to be able to reuse the node, you could even preset all your possible params and call them by adequate matches.
BTW, I use NeoVis with my own Javascript code to display also images in the direct neighbourhood of my ontology of 12000-nodes
bye
03-12-2021 01:54 AM
Thank you, Irler! This is very helpful.
What you mentioned about on own Javascript sounds very good, but my Javascript skills are not so advance to do it.
Nevertheless I want to take advantages of this opportunity to ask you how I can affect the "pop-up" displayed with neovis. It would be nice to change the format, add an images o maybe hide some data too.
Thank you in advance
03-16-2021 09:38 AM
Arturo,
you should:
All the sessions of the conference are now available online