export interface GraphqlRequestResult<TData = unknown> {
  data: TData | null;
  error: string | undefined;
}

export interface FetchGraphqlError {
    message: string;
    locations: Array<{
      line: number;
      column: number;
    }>,
    path: Array<string>,
    extensions: Record<string, unknown>
}
export interface FetchGraphqlResult<TData = unknown> {
  status: number;
  data: TData;
  error: FetchGraphqlError | null;
}