title: GraphQL Apollo: Variable was not provided error in apollo client query, although I think I set the variable
body: <p>What is wrong with this basic apolloClient query?</p>
  
  <pre><code>import gql from 'graphql-tag'
  
  export default (context, apolloClient, userId) =&gt; (
    apolloClient.query({
      query: gql`
        query RootQueryType($userId: ID!) {
          verifyUser(
            id: $userId
          ) {
            id,
            token
          }
        },
      `,
      options: {
        variables: { userId: userId }
      }
    }).then(({ data }) =&gt; {
      return { loggedInUser: data }
    }).catch((error) =&gt; {
      console.log(error)
      return { loggedInUser: {} }
    })
  )
  </code></pre>
  
  <p>I do get the error <code>Error: GraphQL error: Variable "$userId" of required type "ID!" was not provided.</code>. But I set the options and variables with this data.
  I don't see, what I am doing wrong.</p>