Skip to main content

operation_selection_error

Function operation_selection_error 

Source
pub fn operation_selection_error(e: &GraphQLParseError) -> FraiseQLError
Expand description

Map a parse failure onto the error kind the client should see.

A document that does not parse is a parse error. A document that parses but names an operation that is not there — or names none when it must — is a validation error: the syntax is fine, the request is wrong.