Able to return None
when you are not supposed to??
#229
Labels
question
Further information is requested
None
when you are not supposed to??
#229
Reporting issues with GraphQL-core 3
I came across an issue that may be due to Graphene but the problem surfaces here.
I was writing a mutation which would raise an Error or return:
instead of something like:
I was happy that this worked:
until I realised that this would also work:
currently, because the line of code linked above is before the check
if is_leaf_type(return_type)
, so long asOutput = someScalarOrEnumType
the mutation will return{"data": {"someMutationThatReturnsNone": None}
.Which I don't think is right.
Would appreciate your thoughts.
The text was updated successfully, but these errors were encountered: