Problem/Motivation
The views_entity_results data producer plugin gives the following error when the view has zero results:
Call to a member function getCacheContexts() on array in Drupal\graphql_compose_views\Plugin\GraphQL\DataProducer\ViewsEntityResults->resolve() (line 55 of modules/contrib/graphql_compose/modules/graphql_compose_views/src/Plugin/GraphQL/DataProducer/ViewsEntityResults.php)
Proposed resolution
The patch attached fixes the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| graphl_compose_views_empty_results.patch | 1.68 KB | sagar ramgade |
Issue fork graphql_compose-3356859
Show commands
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
almunningsThanks for the report
Committed a variation to dev.
https://git.drupalcode.org/project/graphql_compose/-/commit/7fabb2b4754b...
Comment #4
sagar ramgade commented