-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PageInfo type field nullability different from specification #243
Comments
This should also solve #240. |
Even though the spec claims |
Indeed. I have run into the same incongruence, and it is not clear what option is correct. Either the spec is just ambiguous or out of date, or maybe this library is just taking a different approach. Either way, in case the spec is respected, and both |
It seems this has been (accidentally?) solved by #300 already. |
@Cito thanks for reporting that, just stumbled upon this as I was confused about the spec and some implementations out in the wild. I seems that #300 still marks the startCursor: ConnectionCursor | null,
endCursor: ConnectionCursor | null, It only fixes the nullability of |
@Cito Thanks for reporting it spec should definitely be clarified about the values of |
The relay spec says that "
PageInfo
must contain fieldshasPreviousPage
andhasNextPage
, both of which return non‐null booleans. It must also contain fieldsstartCursor
andendCursor
, both of which return non‐null opaque strings."However, the Flow type for PageInfo makes all of them nullable, and the GraphQL object type for PageInfo makes
startCursor
andendCursor
nullable.Can we fix these types to conform to the specification?
The text was updated successfully, but these errors were encountered: