import { gql } from 'apollo-boost';
const GET_USERS = gql`
query getAllUsers(input: {$skip: Int, $limit:Int}){
message
data: {
first_name
last_name
mobile_number
email
}
}`
export default GET_USERS ;
Asked
Active
Viewed 1,254 times
1

Rahul Kumar
- 3,009
- 2
- 16
- 22

L Stark
- 29
- 4
-
Try [this](https://stackoverflow.com/questions/48331103/graphql-gql-syntax-error-expected-name-found) – Charchit Kapoor May 04 '21 at 05:48
-
1Did you read the error? Read the GraphQL query variables section - https://graphql.org/learn/queries/#variables you need to define the type of input and name it with `$input`. – Andy Ray May 04 '21 at 05:55