Skip to content

Different status code when using variables #1121

Answered by rafalp
mantomas asked this question in Q&A
Discussion options

You must be logged in to vote

This is debatable. In first case the payload didn't reach the query executor, so there's no possibility for at least part of query to resolve successfully.

In other case the query entered query executor and only then an error was found with variables, inside the executor as it tried to deserialize variables contents using currently resolver field's args or inputs from schema. This next step occurs at the field's execution level, and it only means that individual field in query failed to execute (notice there's data value in other other case). It's entirely possible for other fields in query to still resolve correctly and their values be returned, producing the "partially successful" query…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mantomas
Comment options

@rafalp
Comment options

Answer selected by mantomas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants