[Tip] You may not need any library to query the GraphQL API
TLDR;
The request needs to be sent using the POST method
The query and variables need to be sent as a JSON object
// sample query
const query = `
query HeroNameAndFriends($episode: Episode) {
hero(episode: $episode) {
name...
blog.rahuldahal.com.np2 min read