# graphql-java-spring-boot-example **Repository Path**: tkmeeta/graphql-java-spring-boot-example ## Basic Information - **Project Name**: graphql-java-spring-boot-example - **Description**: Sample GraphQL server implemented with graphql-java and Spring Boot - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2019-08-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # graphql-java-spring-boot-example Sample app for my tutorial [Building a GraphQL Server with Spring Boot](https://app.pluralsight.com/guides/building-a-graphql-server-with-spring-boot). You'll need [Java 9](http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html). Clone this repo and execute `mvnw spring-boot:run`. Or inside an IDE, execute the class `com.example.DemoGraphQL.DemoGraphQlApplication`. You can go to [http://localhost:8080/h2-console/login.jsp](http://localhost:8080/h2-console/login.jsp) and enter the following information: - JDBC URL: jdbc:h2:mem:testdb - User Name: sa - Password: To check the database or to [http://localhost:8080/graphiql](http://localhost:8080/graphiql) to start executing queries. For example: ``` { findAllBooks { id isbn title pageCount author { firstName lastName } } } ``` Or: ``` mutation { newBook( title: "Java: The Complete Reference, Tenth Edition", isbn: "1259589331", author: 1) { id title } } ``` # License MIT