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.

Command icon 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

Sagar Ramgade created an issue. See original summary.

  • AlMunnings committed 7fabb2b4 on 2.0.x
    Issue #3356859 by Sagar Ramgade: ViewsEntityResults gives error when the...
almunnings’s picture

Status: Active » Fixed

Thanks for the report
Committed a variation to dev.

https://git.drupalcode.org/project/graphql_compose/-/commit/7fabb2b4754b...

sagar ramgade’s picture

Assigned: sagar ramgade » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.