Finding first commit since a given date



I’m trying to find the first commit after a date, but can’t seem to figure out the best way to go about it I have the following query which seems like should give me what I’m after:

query { 
  repository(owner: "graphql", name: "graphql-js") {
    ref(qualifiedName: "master") {
      target {
        ... on Commit {
          history(last: 1, since: "2017-03-02T00:00:00Z") {
              nodes {

However that gives me an error

"errors": [
      "message": "backwards pagination unsupported for CommitHistoryConnection",

It might be worth noting that replacing last with first in my query will successfully return the most recent commit, but again my goal is to find the oldest commit since a date.

Any thoughts on how I would be able to make this query work?


Did you find any resolution to this yet?


Typically you’d be able to flip the order of a connection using the orderBy argument, but that’s not available on the CommitHistoryConnection. I’ll add this as a schema request to look into, but I’m not sure that it’s something we could support on the Git side of things.