---
title: "Discussion on \"Fetching data from a GraphQL API using the Fetch API\" | Hashnode"
description: "Discussion on \"Fetching data from a GraphQL API using the Fetch API\". In this article we would be learning how to fetch data from a GraphQL API using javascript's fetch API. We would be querying github's rich API as our case study.\nWhat is GraphQL?\nGraphQL according to its official website is a query language for your ..."
url: "https://hashnode.com/posts/fetching-data-from-a-graphql-api-using-the-fetch-api/5fbb5981faba48183e280962"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fetching data from a GraphQL API using the Fetch API](https://friilancer.hashnode.dev/fetching-data-from-a-graphql-api-using-the-fetch-api?utm_source=hashnode&utm_medium=feed)

In this article we would be learning how to fetch data from a GraphQL API using javascript's fetch API. We would be querying github's rich API as our case study. What is GraphQL? GraphQL according to its official website is a query language for your ...

Nov 23, 2020 · 3 min read · friilancer.hashnode.dev  
Read the article

-   [#hashnodebootcamp2-1](https://hashnode.com/tag/hashnodebootcamp2-1)
-   [#graphql](https://hashnode.com/tag/graphql)
-   [#fetch](https://hashnode.com/tag/fetch)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Aniediabasi Etukudo](https://hashnode.com/@friilancer)

@friilancer · Nigeria

  
[View profile](https://hashnode.com/@friilancer)

Software Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Ngwube Precious](https://hashnode.com/@Prewsh)

[Nov 23, 2020](https://hashnode.com/posts/fetching-data-from-a-graphql-api-using-the-fetch-api/5fbb5981faba48183e280962/comment/5fbb74624609e7186f855e02)

Thanks for this article, really helped me, I want to be able to use the response returned on the browsers, I keep getting this CORS error, how do I resolve it.

[Ngwube Precious](https://hashnode.com/@Prewsh)

[Nov 23, 2020](https://hashnode.com/posts/fetching-data-from-a-graphql-api-using-the-fetch-api/5fbb5981faba48183e280962/comment/5fbb74624609e7186f855e02#reply-5fbbb15c4609e7186f85640a)

Thank you [Aniediabasi Etukudo](https://hashnode.com/@friilancer) this article has really helped me, all my issues have been solved

[Aniediabasi Etukudo](https://hashnode.com/@friilancer)

[Nov 23, 2020](https://hashnode.com/posts/fetching-data-from-a-graphql-api-using-the-fetch-api/5fbb5981faba48183e280962/comment/5fbb74624609e7186f855e02#reply-5fbbb2acfaba48183e28122b)

I'm really glad it helped. Wrote this because I am learning about it too [Ngwube Precious](https://hashnode.com/@Prewsh)
