You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
graphql module checks for CacheContexts when queries are submitted :
if ($missing = array_diff($result->getCacheContexts(), $metadata->getCacheContexts())) {
throw new \LogicException(sprintf(
'The query result yielded cache contexts (%s) that were not part of the static query analysis.',
implode(', ', $missing)
));
}
And as soon as I enabled tgmgt_content, the exception above is thrown upon the execution of graphql query. It complains that a cache context "(url.query_args:key)" is missing. This context is being added by tmgmt_content_entity_access in :
commenting out return $result->addCacheContexts(['url.query_args:key']); fixes the issue.
But it seems that tmgmt_content_entity_access is adding the cache context appropriately. And I believe this is may be a graphQl issue.
To Reproduce:
enable graphql
enable tgmgt_content
grant anonymous users to execute graphql queries
Execute any graph ql query as anonymous user.
The text was updated successfully, but these errors were encountered:
graphql module checks for CacheContexts when queries are submitted :
And as soon as I enabled tgmgt_content, the exception above is thrown upon the execution of graphql query. It complains that a cache context "(url.query_args:key)" is missing. This context is being added by tmgmt_content_entity_access in :
commenting out return $result->addCacheContexts(['url.query_args:key']); fixes the issue.
But it seems that tmgmt_content_entity_access is adding the cache context appropriately. And I believe this is may be a graphQl issue.
To Reproduce:
The text was updated successfully, but these errors were encountered: