OBJECT

UserConnection

A type that describes the return type for the 'users' query. 'User' data can then be accessed via nodes or edges

link GraphQL Schema definition

  • type UserConnection {
  • # The total number of 'User' records available given the constraints of the query.
  • # An important note: This number represents the total number of records accross
  • # individual requests.
  • # i.e. if totalCount were 100 and the 'users' query requested only 10 results via
  • # the 'first' argument in the query,
  • # then you could calculate that you would need to make 10 requests to get all 100
  • # records available.
  • totalCount: Int!
  • # A list of 'User's, with the addition of a cursor field that can be used to fetch
  • # subsequent pages.
  • edges: [UserEdge]
  • # A list of User entities.
  • nodes: [User]
  • # Information needed to fetch subsequent pages.
  • pageInfo: PageInfo!
  • }