Skip to content

Instantly share code, notes, and snippets.

View dannydenenberg's full-sized avatar
💃
Probably in a musical

Danny Denenberg dannydenenberg

💃
Probably in a musical
View GitHub Profile
@dannydenenberg
dannydenenberg / graphql-client.js
Created August 21, 2020 02:09
A super simple, easy as pie GraphQL client.
import fetch from "node-fetch";
/** EXAMPLE USAGE **/
const client = new GraphqlClient('http://localhost:3000');
client.query(HELLO).then(data => console.log(data));
const HELLO = `
{
hello