[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...
![[Tip] You may not need any library to query the GraphQL API](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1623313455611%2FT7GNWucu4.png&w=3840&q=75)

![[Resolved] MongoDB Atlas line-break issue](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1623161592872%2FSeljvQ06b.png&w=3840&q=75)