An open API service indexing awesome lists of open source software.

https://github.com/chinmaymahajan/graphql-tseries-vs-pewdiepie

Simple example of wrapping REST API with GraphQL. Youtube REST api to get subscription count is wrapper in the resolver.
https://github.com/chinmaymahajan/graphql-tseries-vs-pewdiepie

graphiql graphql graphql-yoga youtube-api

Last synced: 6 months ago
JSON representation

Simple example of wrapping REST API with GraphQL. Youtube REST api to get subscription count is wrapper in the resolver.

Awesome Lists containing this project

README

          

# GraphQL-TSERIES-vs-PEWDIEPIE
Simple example of wrapping REST API with GraphQL.
Youtube REST api to get subscription count is wrapper in the resolver.
> You will need to get your
API key from youtube

## Getting started

```sh
yarn install
yarn start
```

It will Spin up a GraphQL server (graphql-yoga) on port 4000 with GraphiQL UI

### Queries

#### PewDiePie
![Query for PewDiePie](./images/pewdiepieQuery.png)

#### T-Series
![Query for T-Series](./images/tseriesQuery.png)