mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-23 23:20:47 +03:00
add 'invalid' key in test client response
This commit is contained in:
parent
8cae7bd16f
commit
06b5119ee4
|
@ -15,7 +15,8 @@ def default_format_error(error):
|
|||
def format_execution_result(execution_result, format_error):
|
||||
if execution_result:
|
||||
response = {}
|
||||
|
||||
response['invalid'] = execution_result.invalid
|
||||
|
||||
if execution_result.errors:
|
||||
response['errors'] = [format_error(e) for e in execution_result.errors]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user