GraphQL Error
GraphQL error and response types with locations, path, and extensions.
api
Install
$ npx shadcn@latest add @open-types/graphql-error
Source
export interface GraphQLErrorLocation {
line: number;
column: number;
}
export interface GraphQLError {
message: string;
locations?: GraphQLErrorLocation[];
path?: (string | number)[];
extensions?: Record<string, unknown>;
}
export interface GraphQLResponse {
data?: Record<string, unknown> | null;
errors?: GraphQLError[];
}
export interface GraphQLErrorLocation {
line: number;
column: number;
}
export interface GraphQLError {
message: string;
locations?: GraphQLErrorLocation[];
path?: (string | number)[];
extensions?: Record<string, unknown>;
}
export interface GraphQLResponse {
data?: Record<string, unknown> | null;
errors?: GraphQLError[];
}