[Vuejs]-Apollo client query with params – Vue

0πŸ‘

I had to wrap my query this way:

query Auth($login: String!, $password: String!) {
  auth (login: $login, password: $password)
}

When you’re using params with your Query, you always have to wrap it this way.

Leave a comment