drupal-graphql / drupal-graphql/graphql

New changes in content types are not reflecting in the GrpahQL schema

Open
#1,019 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
287
Forks
198
PR merge metrics
No merged PRs in 30d

Description

OK, this is a bit weird but I talked about in the GatsbyJS slack channel. So I have a Drupal site which GatsbyJS serves the content. I can pull entities but when I change the structure of an entity, especially in content types, the graphql queries are broken. For example, after adding a taxonomy reference field to the article content type I'm getting the next error in the watchdog:

> LogicException: Missing type FieldNodeArticleFieldAuthors. in Drupal\graphql\Plugin\GraphQL\Schemas\SchemaPluginBase->getType()

I'm managing to fix this after truncating the `cache_graphql_definitions` table it's a bit WTF for me. Does this mean that I need to fix after any config entity the table cache?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.