Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-20-2021 05:50 AM
Hello, I have started to play with neo4j-graphql-java (since we are a java shop). Before that I made a POC with Grandstack and neo4j-graph-js.
It worked great but now I am trying to move schema.graphql to my spring boot app that is using neo4j-graphql-java and graphql-kotlin-spring-server.
schema.graphql doesn't work out of the box, so I am trying to understand the differences, learn the motivation behind them and possible workarounds
In Grandstack I had Date and Point implicitly defined. Here I have to declare them as scalars:
scalar Date
scalar Point
Since I would like to use the same schema across both projects, is there a config where I could specify this implicit import?
Then in Grandstack my types are generated as queries by preserving the original names. In java lib (I guess this has been done by kotlin graphql schema generator) , the query types are decapitalized, e,g type Movie is generated as query movie.
I found the config in the docs GitHub - neo4j-graphql/neo4j-graphql-java: Pure JVM translation for GraphQL queries and mutations to... that says:
And finally I would like to ask:
Thanks in advance,
Milan
05-03-2021 10:49 AM
I think we chatted about this in Discord, but I will post here as well for others:
For configuring the generated schema, SchemaBuilder.buildSchema
takes a configuration object as the second argument. You can see some examples of using this configuration in the augmentation tests here and specifically for capitalized queries here.
There are not currently plans to make neo4j-graphql-java an official project. Andreas Berger has been looking at ways to align neo4j-graphql-java with the official Neo4j GraphQL library outlined in these issues.
All the sessions of the conference are now available online