-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
elm-graphql/src/GraphQl/Http.elm
Line 41 in 240f239
, expect = Http.expectJson msg (Decode.field "data" decoder) |
This is an incorrect assumption. You can get a valid response with just an errors
field.
According to https://spec.graphql.org/draft/#sec-Response-Format GraphQL requests should produce something like this:
type alias GQLError =
{ message : String
, path : List String
, locations : …
, extensions : …
}
type alias GQLResponse =
{ errors: Maybe (List GQLError)
, data: Maybe Value
, extensions: Maybe Value
}
Metadata
Metadata
Assignees
Labels
No labels