GraphQLPathSegment
Backend-neutral segment of a GraphQL error GraphQLResponseError.path.
A GraphQL error path is a sequence of segments that locates the response field which triggered the error. Each segment is either a named field (Field) or a zero-based list index (Index).
Usage
val path = listOf(
GraphQLPathSegment.Field("viewer"),
GraphQLPathSegment.Field("repositories"),
GraphQLPathSegment.Index(3),
)Content copied to clipboard