bin/setup
bin/rails db:seed
get only book
curl -s "http://localhost:3000/graphql" \
--json '{"query": "query BooksQuery{ books0 { id name purchaseOn }}", "operationName": "BooksQuery"}'
get book and user
curl -s "http://localhost:3000/graphql" \
--json '{"query": "query BooksQuery{ books0 { id name purchaseOn user { id name hasBook purchaseBooks{ id name purchaseOn } }}}", "operationName": "BooksQuery"}'
get only book
curl -s "http://localhost:3000/graphql" \
--json '{"query": "query BooksQuery{ books3 { id name purchaseOn }}", "operationName": "BooksQuery"}'
get book and user
curl -s "http://localhost:3000/graphql" \
--json '{"query": "query BooksQuery{ books3 { id name purchaseOn user { id name hasBook purchaseBooks{ id name purchaseOn } }}}", "operationName": "BooksQuery"}'
curl -s "http://localhost:3000/graphql" \
--json '{"query": "query BooksQuery{ books1 { id name purchaseOn user { id name hasBook purchaseBooks{ id name purchaseOn } }}}", "operationName": "BooksQuery"}'
curl -s "http://localhost:3000/graphql" \
--json '{"query": "query BooksQuery{ books2 { id name purchaseOn user { id name hasBook purchaseBooks{ id name purchaseOn } }}}", "operationName": "BooksQuery"}'