title: AppSync GraphQL query with nextToken
body: <p>My <code>schema.graphql</code> file auto generated below query in <code>graphql/queries.js</code> file by running <code>amplify push</code> command.</p>
  
  <p>Here is the schema file that generates query automatically.</p>
  
  <p><strong>schema.graphql</strong></p>
  
  <pre><code>type User @model {
    id: String!
    uuid: String!
    following: [String]
    follower: [String]
    posts: [Post] @connection(name: "Userposts", sortField: "createdAt")
  }
  
  type Post 
    @model
    @auth(
      rules: [
        { allow: owner },
        { allow: groups, groups: ["Admin"] }
      ]
    ) {
    id: ID!
    author: User! @connection(name: "Userposts")
    status: Status!
    draft: Boolean
    content: AWSJSON!
    loved: [String]
    comments: [Comment] @connection(name: "PostComments", sortField: "createdAt")
    createdAt: AWSDateTime
      updatedAt: AWSDateTime
  }
  
  enum Status {
    PRIVATE
    PUBLIC
  }
  </code></pre>
  
  <p>Here's the queries generated by schema graphql.</p>
  
  <p><strong>queries.js</strong></p>
  
  <pre><code>export const getUser = `query GetUser($id: ID!) {
    getUser(id: $id) {
      id
      uuid
      following
      follower
      posts(limit: 10, sortDirection: DESC) {
        items {
          id
          privacy
          draft
          content
          loved
          createdAt
          updatedAt
        }
        nextToken
      }
      notifications {
        items {
          id
          content
          category
          link
          createdAt
        }
        nextToken
      }
    }
  }
  `;
  </code></pre>
  
  <p>I added <code>(limit: 10, sortDirection: DESC)</code> to <code>posts</code> to get the 10 latest posts from the user but can't figure out how to pass <code>nextToken</code> value to get another 10 posts after the first query. </p>
  
  <p>How do I pass <code>nextToken</code> value to the posts so I can get next 10 posts?</p>