API Endpoint : https://graphql-backend-dr4o.onrender.com/graphql
Requests :
- Fetch All Books :
query{
allBooks{
id
title
desc
price
}
}
- Fetch Book By ID :
query{
getBook(bookId: 50){
id
title
desc
price
}
}
- Save a Book
mutation{
createBook(book : {
title: "How to Win Friends and Influence People",
desc: "A self-help book offering practical advice and techniques for how to get out of a mental rut and make life more rewarding.",
author: "Dale Carnegie",
price: 800.0,
pages: 288
}){
id,
title
}
}