Closed
Description
i just started exploring this project, i read the documents and couldn't figure this out (so in that case i'm emphasizing on importance of configuration being much more straight forward and possibly default enabled )
for schema files we are supposed to write valid mappings by signature and return type
but if i make any mistake (not annotating Arguments, or methods) it remains silent until a request hit it
i was lucky i had defined not-null return type in schem otherwise i suppose it would remain completely silent
{
"errors": [
{
"message": "The field at path '/uploadTestFile' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'File' within parent type 'Mutation'",
"path": [
"uploadTestFile"
],
"extensions": {
"classification": "NullValueInNonNullableField"
}
}
],
"data": null
}
my point is this is not an issue at all!
but when i'm writing schema file i'm going with schema-first approach and it would be much more better experience if these mistakes would bubble up at startup rather than request resolving