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/5eaece7d7183cda5d4b39fc3825c4176 to your computer and use it in GitHub Desktop.
Save callmephilip/5eaece7d7183cda5d4b39fc3825c4176 to your computer and use it in GitHub Desktop.
const RootQuery = {
type: new GraphQLList(TodoSchemaType),
resolve: (_, args, sessionToken) => {
const query = new Parse.Query(Todo);
return query.find({ sessionToken });
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment