title: Api-Platform User Login via GraphQL
body: <p>I am creating an API using API-Platform and have set up my user entity etc using the standard symfony security bundle (<a href="https://symfony.com/doc/current/security.html#retrieving-the-user-object" rel="noreferrer">https://symfony.com/doc/current/security.html#retrieving-the-user-object</a>)</p>
  
  <p>I have the login working with REST at <code>{url}/api/login</code> using JWT but I cannot see any way of sending my login details with GraphQL</p>
  
  <p>The API-platform documentation shows how to set up security and how to setup GraphQL separately but doesn't really show how to combine them.</p>
  
  <p><a href="https://api-platform.com/docs/core/graphql" rel="noreferrer">https://api-platform.com/docs/core/graphql</a></p>
  
  <p><a href="https://api-platform.com/docs/core/fosuser-bundle" rel="noreferrer">https://api-platform.com/docs/core/fosuser-bundle</a></p>
  
  <p>How do I make the login accessible in GraphQL? 
  Currently, I only have the <code>createUser</code> <code>updateUser</code> and <code>deleteUser</code> mutations, I assume I would need an <code>authenticateUser</code> one?</p>