Skip to content

Instantly share code, notes, and snippets.

@callmephilip
Created July 20, 2016 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callmephilip/f74459f404fa7cb1c46a2ade67dcc279 to your computer and use it in GitHub Desktop.
Save callmephilip/f74459f404fa7cb1c46a2ade67dcc279 to your computer and use it in GitHub Desktop.
import GraphQLClient from 'parse-graphql-client';
const client = new GraphQLClient(settings.graphqlURL, require('parse/react-native'));
client.query(`
{
todos {
id, text, isComplete
}
}
`).then(result => {
console.log(result.todos);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment