Auto-indexing service and GraphQL API for AT Protocol Records quickslice.slices.network/
atproto gleam graphql

Cursors aren't working #8

closed opened by trezy.codes edited

Another request that seems to be busted. I'm trying to implement pagination. The query is fine if I set the cursor to null. If I send the cursor in, the response always responds with an empty edges array.

I've verified that I'm using the correct cursor, and that there are additional records. The request with a null cursor responds with the appropriate edges, hasNextPage: true, and it returns a cursor, so there's definitely more to retrieve.

This is the query I'm using:

query ListGames ($cursor: String) {
  gamesGamesgamesgamesgamesGame (
    first: 1
    after: $cursor
  ) {
    edges {
      node {
        name
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

Fixed in 0.20.1

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:4jrld6fwpnwqehtce56qshzv/sh.tangled.repo.issue/3mcso2ez7rq22