Skip to content

Instantly share code, notes, and snippets.

@heymartinadams
Last active March 8, 2017 20:07
Show Gist options
  • Save heymartinadams/4428596558ea8c35ae1f6b48b099564a to your computer and use it in GitHub Desktop.
Save heymartinadams/4428596558ea8c35ae1f6b48b099564a to your computer and use it in GitHub Desktop.
import gql from 'graphql-tag'
export const userQuery = gql`
query {
user {
id
name
email
paid
}
}
`
export const signinUser = gql`
mutation ($email: String!, $password: String!) {
signinUser(email: {email: $email, password: $password}) {
token
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment