Open Collective
Open Collective
[Breaking change] Make limits and offsets non nullables
Published on September 6, 2021 by Benjamin Piouffle

Starting this week, all the existing queries on our public GraphQL API will switch their limit and offset arguments to non-nullable. Default values are already set, so this change should have a minimal impact.

Is this a breaking change for me?

If you're explicitly passing null as a value for one of these arguments, then this change will break your queries. For example, this change will impact the following query:
account(slug: "opensource") {
  members(limit: null) {
    ...
  }
}

If you're not passing any value for limit or offset, this change will not impact the query:

account(slug: "opensource") {
  members { # All fine!
    ...
  }
}

Context

🎉  1👍️  2🚀  1