title: AppSync - creating nested mutation with array and objects?
body: <p>Does AppSync support nested single mutation?</p>
  
  <p>I want to call a single mutation which will insert records into two tables, eg: <code>User</code> and <code>Roles</code> tables in DynamoDB.</p>
  
  <p>Something like this for example: </p>
  
  <pre><code>createUser(
     input: {
        Name: "John"
        Email: "user@domain.com"
        LinesRoles: [
          { Name: "Role 1" }
          { Name: "Role 2" }
        ]
     }) {
          Id
          Name
          LinesRoles {
            Id
            Name
          }
        }
  </code></pre>
  
  <p>Do I need to create two resolvers in AppSync for <code>User</code> and <code>Roles</code> to insert the records in both tables?</p>