GraphQL v0.2.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

new(errors)

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"}]}