The first argument type in a Relay connection can now be non-nullable if backward pagination is disabled (likewise for last when forward pagination is disabled). So the following types are now permitted:
type Query {
users(last: Int!, before: String): UserConnection
}
type Query {
users(first: Int!, after: String): UserConnection
}
This addresses https://github.com/cjoudrey/graphql-schema-linter/issues/148.
The
first
argument type in a Relay connection can now be non-nullable if backward pagination is disabled (likewise forlast
when forward pagination is disabled). So the following types are now permitted:The following, however, are not permitted: