We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi all,
When connectionFromPromisedArray resolves from an empty array, startCursor and endCursor are null. However, the Connection spec specifies non-null:
"name": "startCursor", "type": { "name": null, "kind": "NON_NULL", "ofType": { "name": "String", "kind": "SCALAR" } } }, { "name": "endCursor", "type": { "name": null, "kind": "NON_NULL", "ofType": { "name": "String", "kind": "SCALAR" } } }
e.g.:
const conn = await connectionFromPromisedArray( Promise.resolve([]), {first: 2} );
which yields the following for conn:
{ edges: [], pageInfo: { startCursor: null, endCursor: null, hasPreviousPage: false, hasNextPage: false } }
The text was updated successfully, but these errors were encountered:
Closing as duplicate in favor of #243
Sorry, something went wrong.
No branches or pull requests
Hi all,
When connectionFromPromisedArray resolves from an empty array, startCursor and endCursor are null. However, the Connection spec specifies non-null:
e.g.:
which yields the following for conn:
The text was updated successfully, but these errors were encountered: