cancel
Showing results for 
Search instead for 
Did you mean: 

GraphQL-spring-boot example seems only to generate create mutations

christof
Node

I'm building a project on the neo4j-graphql-java library.

Running the graphql-spring-boot example inside the GitHub project of the neo4j-graphql-java (version 1.1.0) library, only results in a graphql interface with the expected queries, but not with the expected mutations: it only has the create mutations generated.

If I feed the same graphql schema (with some minor tweaks) in GRANDstack, many more mutations seem to be generated.

How can I get the java (kotlin) example to also generate the other mutations ?

2 REPLIES 2

MuddyBootsCode
Graph Steward

I think you'd have to add on to that package to make that happen. I'm not sure if it's being maintained or used on the same scale as the GRANDstack is.

christof
Node

Solved the problem.

Originally I used a schema generated using the neo4j-graphql-js (grand stack), with some small required modifications. But the id's of the nodes where defined in a different way ( as _id: Long!).

Long was not accepted in the java version of the library, so I used Int.

Now this seems to be the actual issue. I needed to define the id's as type ID and then the other mutations (more than just the create) where generated!

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.