GraphQL v0.3.0 GraphQL.Errors
Represents a set of errors that have occured.
Summary
Functions
Generates a new Errors structure using the passed in errors as the contents
Types
t :: %{errors: [GraphQL.Error.t]}
Functions
Specs
new([GraphQL.Error.t]) :: GraphQL.Errors.t
new(GraphQL.Error.t) :: GraphQL.Errors.t
Generates a new Errors structure using the passed in errors as the contents
Examples
iex> GraphQL.Errors.new([%GraphQL.Error{message: "GraphQL: syntax error before: '}' on line 1", line_number: 1}])
%GraphQL.Errors{errors: [%GraphQL.Error{line_number: 1,
message: "GraphQL: syntax error before: '}' on line 1"}]}