title: Graphql Mutation with Array types
body: <p>I'm trying to write a mutation query and it works perfectly with graphql</p>
  
  <pre><code>mutation($project: ProjectsInput) {
    NewProject(project: $project) {
      name,
      namespace,
      environments{
        env,      
      }}}
  </code></pre>
  
  <p>these are the query variables</p>
  
  <pre><code>{"project": {
     "name": "Pr1",
    "namespace": "Pr2",
    "environments": 
  
    [{"env": "rec"},{"env": "dev"}]
  
  
  }}
  </code></pre>
  
  <p>and this is how it looks 
  <a href="https://i.stack.imgur.com/VpuK4.png" rel="nofollow noreferrer">graphql mutation</a>
  now I am trying to use Apollo Client in angular to build this mutation like so </p>
  
  <pre><code>
      createProject() {
      this.apollo.mutate({
        mutation: gql`
        mutation($project: ProjectsInput) {
          NewProject(project: $project) {
            name,
            namespace,
            environments{
              env,      
            }
      `,
        variables: { 
          project: {
            name: "sth",
            namespace: "sth2",
            env: [
              {env:"env1"},
              {env:"env2"}
            ]
          } 
        }
      }).subscribe(data =&gt; {
        console.log('New project created!', data);
  
      });  }
  </code></pre>
  
  <p>But i'm getting Http failure response because of the variable $env of type Array.i want to pass an array as a variable for the query in apollo client.I don't have problems with variables of type string but the array objects causes this error.</p>