title: How to use pagination from prisma1 to prisma2, using Connection
body: <p>I have been using <code>usersConnection</code> to manage paginations with this schema in prisma1:</p>
  <pre><code>&quot;&quot;&quot;A connection to a list of items.&quot;&quot;&quot;
  type UserConnection {
    &quot;&quot;&quot;Information to aid in pagination.&quot;&quot;&quot;
    pageInfo: PageInfo!
  
    &quot;&quot;&quot;A list of edges.&quot;&quot;&quot;
    edges: [UserEdge]!
    aggregate: AggregateUser!
  }
  
  &quot;&quot;&quot;An edge in a connection.&quot;&quot;&quot;
  type UserEdge {
    &quot;&quot;&quot;The item at the end of the edge.&quot;&quot;&quot;
    node: User!
  
    &quot;&quot;&quot;A cursor for use in pagination.&quot;&quot;&quot;
    cursor: String!
  }
  
  type AggregateUser {
    count: Int!
  }
  </code></pre>
  <p>Now, it's time to migrate to prisma2. I have to keep this format as different frontend are using this schema, Any recommendations to recreate this pagination with prisma2? Should we parsed an re-create the object <code>users</code>? Is there a better approach?</p>