Last active
April 4, 2020 16:00
-
-
Save SurbhiKatariya/2a83b00e343116b9ba69c5d06b81ecb1 to your computer and use it in GitHub Desktop.
Make graphql query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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, | |
} | |
} | |
` | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment