Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.35 KB

File metadata and controls

22 lines (15 loc) · 1.35 KB

Example: Integration of Neo4j-GraphQL-Java into a Spring Boot application using GraphQL Kotlin

Overview

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 example