-
Notifications
You must be signed in to change notification settings - Fork 54
Getting Started
Igor Dianov edited this page May 29, 2024
·
3 revisions
The GraphQL JPA Query is a performance oriented GraphQL engine that gives you instant, real-time GraphQL APIs over many popular databases and other data sources. You can quickly get started with GraphQL JPA Query by using Spring Boot Example, or by including the Spring Boot Starter dependency it on your own Spring Boot Application pom.xml:
<dependency>
<groupId>com.introproventures</groupId>
<artifactId>graphql-jpa-query-boot-starter</artifactId>
<version>1.2.7</version>
</dependency>
And use @EnableGraphQLJpaQuerySchema
annotation to specify JPA entity classes/base package names to include into the generated GraphQL schema:
@SpringBootApplication
@EnableGraphQLJpaQuerySchema(basePackageClasses = Book.class)
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}