neo4j-graphql / neo4j-graphql-java

Neo4j Labs Project: Pure JVM translation for GraphQL queries and mutations to Neo4j's Cypher
Apache License 2.0
105 stars 49 forks source link

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

Open Anunayth opened 4 years ago

Anunayth commented 4 years ago

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.

jexp commented 4 years ago

@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.

Andy2003 commented 4 years ago

@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?