You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Roman Ernst 5e2f0188f4 Added graphql-request example (#288) 7 years ago
..
README.md Added graphql-request example (#288) 7 years ago
index.js Added graphql-request example (#288) 7 years ago
package.json Added graphql-request example (#288) 7 years ago

README.md

GraphQL Request example

How to use

Download the example or clone the repo:

curl https://codeload.github.com/zeit/micro/tar.gz/master | tar -xz --strip=2 micro-master/examples/with-graphql-request
cd with-graphql-request

Install it and run:

$ yarn install # (or `$ npm install`)
$ yarn run start # (or `$ npm run start`)

Deploy it to the cloud with now (download)

$ now

The idea behind the example

Shows how to get data from a GraphQL endpoint using GraphQL Request. This example relies on graph.cool for its GraphQL backend.