Class CursorPaginationInput

Hierarchy (View Summary)

Constructors

Properties

Constructors

Properties

after?: string

The cursor to start the pagination

query {
 messages(first: 3, after: "xxx") {
  edges {
   cursor
   node {
    id
   }
  }
 }
}
before?: string

The cursor to end the pagination

query {
 messages(last: 2, before: "xxx") {
  edges {
   cursor
   node {
    id
   }
  }
 }
}
first?: number

The amount of items to be requested per page from the start

query {
 messages(first: 3) {
  edges {
   cursor
   node {
    id
   }
  }
 }
}
last?: number

The amount of items to be requested per page from the end

query {
 messages(last: 2) {
  edges {
   cursor
   node {
    id
   }
  }
 }
}