This example uses the graphql-kotlin library
In the Neo4jConfiguration a DataFetchingInterceptor is created, which will be bound to all the graphql fields generated by the neo4j-graphql-library. Its purpose is the execution of the cypher query and the transformation of the query result.
In the GraphQLConfiguration
the schema to be enhanced by the library is loaded as neo4jSchema
.
Additionally, a springSchema
is generated which is generated from the methods defined in
AdditionalQueries.
The springSchema
and the neo4jSchema
are merged to a single graphql schema exposed by the app.
-
run the spring boot application
-
open http://localhost:8080/playground to run some graphql queries