neo4j-graphql-java icon indicating copy to clipboard operation
neo4j-graphql-java copied to clipboard

Error while using Fabric with neo4j-graphql-java v1.0.0

Open Anunayth opened this issue 4 years ago • 2 comments

I am trying to fetch data from neo4j using fabric in neo4j-graphql-java. I have two subgraphs and i am using fabric to fetch data from one of the subgraphs.

I am using library neo4j-graphql-java - version 1.0.0 and neo4j version4.1.0. My neo4j db has two subgraphs : subgraph_1 and subgraph_2(default).

Graphql Schema :

type Query{ getNodeFromSubGraph : [Element] @cypher(statement:"use fabric.subgraph_1 match(n) return n") }

error :

Caused by: org.neo4j.exceptions.SyntaxException: The USE GRAPH clause is not available in this implementation of Cypher due to lack of support for USE graph selector. (line 1, column 28 (offset: 27)) "cypher runtime=slotted use fabric.subgraph_1 match(n) return n"


How can i fetch the data using fabric. The same query works in neo4j browser.

Anunayth avatar Sep 03 '20 08:09 Anunayth

@Andy2003 we should revisit if we still need the slotted runtime requirement (there used to be a bug)

and if not if removing the runtime is enough to make fabric work.

jexp avatar Sep 03 '20 09:09 jexp

@jexp I searched the code base for slotted, but we do not generate any cypher with a runtime flag. @Anunayth is your clue code generating the runtime=slotted flag?

Andy2003 avatar Nov 12 '20 09:11 Andy2003