Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 797 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 797 Bytes

book-store-graphql-project

A GraphQL Service for serving book store data

Getting Started

  1. Run to install dependencies: mvn clean install

  2. Run the project in IDE to start spring boot app.

  3. Login to H2 database using link

    • Username : sa
    • Password: No password needed
    • JDBC Url: jdbc:h2:mem:test
    • Click on test connection and then click on connect.
  4. The default graphQL endpoint is localhost:8080/graphql

  5. Try running sample graphQL query like below in Postman

    • URL - http://localhost:8080/graphql
    • Method - POST
    • Add the below query in Request body and select graphQL as type in Request body section of postman.
query {
    allBooks {
        id
        title
        desc
        price
    }
}