Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conscious-puppet/book-store-graphql
https://github.com/conscious-puppet/book-store-graphql
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/conscious-puppet/book-store-graphql
- Owner: conscious-puppet
- Created: 2021-09-24T09:25:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-24T09:26:38.000Z (over 3 years ago)
- Last Synced: 2023-10-05T18:44:45.294Z (over 1 year ago)
- Language: Java
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Book Store
- `/rest/books` is the REST resource which can fetch Books information
- DataFetchers are Interfaces for RuntimeWiring of GraphQL with JpaRepository## Sample GraphQL Scalar Queries
- Accessible under `http://localhost:8091/rest/books`
- Usage for `allBooks`
- There is a requests.http containing sample queries```
{
allBooks {
isn
title
authors
publisher
}
}
```- Usage for `book`
```
{
book(id: "123") {
title
authors
publisher
}
```- Combination of both `allBooks` and `book`
```
{
allBooks {
title
authors
}
book(id: "124") {
title
authors
publisher
}
}
```