[GraphQL Directives] MissingDefaultException
is sometimes unreasonable
#1328
Labels
drupal
Concerns Drupal backends.
MissingDefaultException
is sometimes unreasonable
#1328
Problem
Error:
(source)
But I want to keep
And I don't want to add a default value for the
Page
type.Possible solution 1
Instead, I maybe can do something like this:
where
@a @b @c
are any resolvers returning the list of nullable objects and@filterNulls
is a new resolver that filters out nulls from the listThen we can improve the logic of
DirectiveInterpreter
to take@filterNulls
into account and ignore this exact type occasion.Downsides:
DirectiveInterpreter
code more complicatedPossible solution 2 (already in use)
Do nothing.
The text was updated successfully, but these errors were encountered: