Skip to content

Commit

Permalink
fix for any failing queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 committed Nov 7, 2020
1 parent 49ff395 commit d2c598e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/configuration/VFBGraph/graphConfiguration.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var locationCypherQuery = instance => ({
"statements": [
{
"statement": "MATCH p=(n:Entity {short_form:'" + instance + "'})-[r:INSTANCEOF|part_of|has_synaptic_terminal_in|has_presynaptic_terminal_in|"
"statement": "MATCH (n:Entity {short_form:'" + instance + "'}) OPTIONAL MATCH p=(n)-[r:INSTANCEOF|part_of|has_synaptic_terminal_in|has_presynaptic_terminal_in|"
+ "has_postsynaptic_terminal_in|overlaps*..]->(x) "
+ "RETURN distinct n,r,x,n.short_form as root",
"resultDataContents": ["graph"]
Expand Down

1 comment on commit d2c598e

@Robbie1977
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensuring single Entity nodes are returned Ref VirtualFlyBrain/VFB2#280

Please sign in to comment.