Skip to content
Igor Dianov edited this page May 29, 2024 · 5 revisions

The GraphQL JPA Query engine documentation

The GraphQL JPA Query engine lets you set up a GraphQL server with auto-generated GraphQL Query Apis from a JPA entity model in minutes.

GraphQL JPA Query library uses JPA specification to derive and build GraphQL Apis using GraphQL Java for your JPA Entity Java Classes. It provides a powerfull JPA Query Schema Builder to generate GraphQL Schema using JPA EntityManager Api and instruments GraphQL Schema with JPA Query Data Fetchers that transform GraphQL queries into JPA queries on the fly.

GraphQL JPA Query creates a uniform query API for your applications without being limited by a single data source. You can use it with multiple JPA compliant databases by instrumenting a separate EntityManager for each DataSource and expose a single GraphQL Query Apis for your Web application domain using Spring Boot Auto Configuration magic.

Your applications can now use GraphQL queries that smoothly follow references between JPA entities with flexible type safe criteria expressions and user-friendly SQL query syntax semantics i.e. query by page, where criteria expressions, select, order by etc.

Features

  • Code first generation of GraphQL schema from JPA entities
  • Customize GraphQL schema using annotations on JPA entities
  • Execute GraphQL queries with dynamic SQL criteria expressions via JPA Criteria Apis
  • Paginate GraphQL query results
  • Support GraphQL Relay Connection specification
  • Optimized JPA Query performance with single fetch queries
  • Merging two or more GraphQL schemas from different JPA entity models
  • Support for GraphQL schema auto-configuration, GraphQL Web Rest Controller via Spring Boot Starters
  • GraphQL Subscriptions (Experimental)
  • Spring GraphQl 1.x.x Auto configurations for Schema Runtime Wiring, Execution, Protocols, Testing