-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFC] Add error path to response (#230)
* Add error path to response Just like it is helpful to know the location in the query associated with an error, it's helpful to know the location in the response. * Updates to error result format Following up on @leebyron's comments: #187 (comment) * Improve organization * Clarify why this feature is useful * Fix typo * Fix index in error path * Add example for non-null field * Formatting, and change array to list * Change "should" to "must" * Clarify what's required when data is null. `{"data": null}` is a legal response when loading a top level field of a nullable type that intentionally returned null. Updating this language to ensure it remains legal. * Move "errors" to top field. New convention for highlighting errors * Another instance of errors over data
- Loading branch information
Showing
1 changed file
with
108 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters