Closed (fixed)
Project:
GraphQL
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2026 at 03:17 UTC
Updated:
21 May 2026 at 19:35 UTC
Jump to comment: Most recent
QueryConnection::item can return an empty array, ConnectionItems::resolve is expecting a Deffered object
https://git.drupalcode.org/project/graphql/-/blob/5.x/examples/graphql_e...
https://git.drupalcode.org/project/graphql/-/blob/5.x/examples/graphql_e...
Copy example, hit an API with no items, get 500
Change return type
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
acbramley commentedComment #4
kingdutchThat makes sense. The alternative would be to return a resolved promise from the
itemsfunction but I think that makes less sense.