title: GraphQL - Best way of passing credentials
body: <p>If I have a GraphQL query/mutation and need to pass login information, how should I do it? Should I pass it in the query itself or pass it into the headers of the request? For example:</p>
  <pre><code>doSomethingThatRequiresLogin(
    login: {
      username: &quot;some username&quot;,
      password: &quot;c29tZSBwYXNzd29yZA==&quot;
    },# should login be passed here or just put into the headers?
    data: {
      a: &quot;b&quot;
    }
  )
  </code></pre>