- Expects
mongodto be running @localhost:27017 - Data will be seeded into
bookandauthorcollections when the app starts up - Run
com.davidagood.graphql.GraphQLServerApplicationor manually run./gradlew bootRun - Starts @ http://localhost:8080
- Run a query by checking an id logged at start-up, filling it into
one of the queries below, and requesting
POST http://localhost:8080/graphqlwith the query in the request body - Alternatively, use a GraphQL client or GraphQL Playground to send the query
{
book(id: "<BOOK_ID_HERE>") {
id
name
pageCount
author {
firstName
lastName
}
}
}{
author(id: "<AUTHOR_ID_HERE>") {
id
firstName
lastName
}
}