GraphQLErrorLocation class
Information about a location in source text that caused an error during the execution of a GraphQL query.
This is analogous to a SourceLocation
from package:source_span
.
- Annotations
-
- @immutable
Constructors
- GraphQLErrorLocation(int line, int column)
-
Information about a location in source text that caused an error during
the execution of a GraphQL query.
const
-
GraphQLErrorLocation.fromJson(Map<
String, Object?> json) -
factory
- GraphQLErrorLocation.fromSourceLocation(SourceLocation location)
-
factory
Properties
- column → int
-
The column within the document String related to the error
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- line → int
-
The line within the document String related to the error
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
firstFromNodes(
Iterable< Node?> nodes) → List<GraphQLErrorLocation> -
listFromSource(
SourceLocation? location) → List< GraphQLErrorLocation>