Skip to content

Instantly share code, notes, and snippets.

@SurbhiKatariya
Last active April 4, 2020 16:00
Show Gist options
  • Save SurbhiKatariya/2a83b00e343116b9ba69c5d06b81ecb1 to your computer and use it in GitHub Desktop.
Save SurbhiKatariya/2a83b00e343116b9ba69c5d06b81ecb1 to your computer and use it in GitHub Desktop.
Make graphql query
<script>
import gql from 'graphql-tag'
const GET_USER_DETAILS = gql`
query getUsers($character: String!) {
allUsers(orderBy: name_ASC, filter: {email_contains: $character}) {
id,
name,
email
}
}
`
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment