'after' filtering does not work with 'last' for Repository refs


#1

Sample query:

{
  FFmpeg: repository(owner: "FFmpeg", name: "FFmpeg") {
    tags: refs(refPrefix: "refs/tags/", last: 2, after: "MjU4") {
      edges {
        cursor
        node {
          name
        }
      }
    }
  }
}

The response is

{
  "data": {
    "FFmpeg": {
      "tags": {
        "edges": [
          {
            "cursor": "MjU3",
            "node": {
              "name": "v0.6"
            }
          },
          {
            "cursor": "MjU4",
            "node": {
              "name": "v0.6.1"
            }
          }
        ]
      }
    }
  }
}

neither of the two edges is after MjU4.

before seems to work fine with last.

Hopefully I’m not overlooking something obvious, but I’ve had success with after and last working together for, say, Repository releases.


#2

:wave: @zmwangx!

This appears to be a bug, our apologies! I’ve added an internal issue to look into this. We’ll be sure to update this thread as we have more information.