UnlyEd/ra-data-graphql-prisma

View on GitHub
src/types/ApolloResponse.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ApolloError, NetworkStatus } from 'apollo-client';
import { ApolloResponseData, MultipleRecordsResponse, SingleRecordResponse } from './ApolloResponseData';

export declare type ApolloResponse<T = SingleRecordResponse | MultipleRecordsResponse> = {
  data: ApolloResponseData<T>;
  error?: ApolloError;
  loading?: boolean;
  networkStatus?: NetworkStatus;
}