RunKit + npm: graphql-request

node v6.17.0
endpointsharetweet
const { request } = require('graphql-request') const query = `{ Movie(title: "Inception") { releaseDate actors { name } } }` request('https://api.graph.cool/simple/v1/movies', query).then(data => console.log(data))
Created from: https://npm.runkit.com/graphql-request
Loading…

1 comment

  • posted a year ago by zachzhi
    { Movie(title: "Inception") { releaseDate } }

sign in to comment