- Issue created by @almunnings
- First commit to issue fork.
- @ankitv18 opened merge request.
Create a new server, get fatal error
TypeError: Cannot assign string to property Drupal\graphql\Entity\Server::$query_depth of type ?int in Drupal\Core\Config\Entity\ConfigEntityBase->set() (line 173 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).
web/modules/contrib/graphql/src/Form/ServerForm.php
copyFormValuesToEntity()
$form_state->setValue('query_depth', (int) $form_state->getValue('query_depth') ?: NULL);
$form_state->setValue('query_complexity', (int) $form_state->getValue('query_complexity') ?: NULL);
query_depth
and query_complexity
should possibly be nullable in the schema yml also?
Active
5.0
Code