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
True {'data': None, 'errors': [{'message': "Variable '$variableName' of required type 'Boolean!' was not provided.", 'locations': [{'line': 2, 'column': 55}]}]}
Inside the Ariadne code, exec_result is ExecutionResult(data=None, errors=[GraphQLError("Variable '$variableName' of required type 'Boolean!' was not provided.", locations=[SourceLocation(line=2, column=55)])]) which is not caught by except GraphQLError.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When missing a variable, I get an error msg but a successful result in
GraphQLResult
.Inside the Ariadne code,
exec_result
isExecutionResult(data=None, errors=[GraphQLError("Variable '$variableName' of required type 'Boolean!' was not provided.", locations=[SourceLocation(line=2, column=55)])])
which is not caught byexcept GraphQLError
.Is this expected behavior? What determines the successful result?
ariadne==0.26.2
Beta Was this translation helpful? Give feedback.
All reactions