cancel
Showing results for 
Search instead for 
Did you mean: 

How can I reuse part of a query with Neo4j's GraphQL package?

geronimo4j
Graph Buddy

Hi I'm using neo4j/graphql and I'm struggling to get fragments to work, it doesn't look like it's supported. Specifically, I'd like to use it so I can reuse parts of queries, as currently I'm maintaining the fields for specific nodes that I'm calling in many places.

Is fragments unsupported? If not, is there an alternative way to reuse parts of queries so I don't have to re-write and maintain the subfields I'd like to call for specific nodes each and every time I write a query for them?

1 ACCEPTED SOLUTION

geronimo4j
Graph Buddy

Turns out this is just part of Apollo and has nothing to do with Neo4j. All good here: Fragments - Client (React) - Apollo GraphQL Docs

View solution in original post

1 REPLY 1

geronimo4j
Graph Buddy

Turns out this is just part of Apollo and has nothing to do with Neo4j. All good here: Fragments - Client (React) - Apollo GraphQL Docs