The relay spec says that "PageInfo must contain fields hasPreviousPage and hasNextPage, both of which return non‐null booleans. It must also contain fields startCursor and endCursor, 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 and endCursor nullable.
Can we fix these types to conform to the specification?
The relay spec says that "
PageInfomust contain fieldshasPreviousPageandhasNextPage, both of which return non‐null booleans. It must also contain fieldsstartCursorandendCursor, 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
startCursorandendCursornullable.Can we fix these types to conform to the specification?