ra-data-hasura
Version:
A data provider for connecting react-admin to a Hasura endpoint
24 lines • 754 B
TypeScript
import { IntrospectionObjectType, IntrospectionSchema, IntrospectionType, IntrospectionField } from 'graphql';
export declare enum FetchType {
GET_LIST = "GET_LIST",
GET_ONE = "GET_ONE",
GET_MANY = "GET_MANY",
GET_MANY_REFERENCE = "GET_MANY_REFERENCE",
CREATE = "CREATE",
UPDATE = "UPDATE",
UPDATE_MANY = "UPDATE_MANY",
DELETE = "DELETE",
DELETE_MANY = "DELETE_MANY"
}
export type IntrospectedResource = {
type: IntrospectionObjectType;
} & {
[fetchType in FetchType]: IntrospectionField;
};
export type IntrospectionResult = {
types: IntrospectionType[];
queries: IntrospectionObjectType[];
resources: IntrospectedResource[];
schema: IntrospectionSchema;
};
//# sourceMappingURL=types.d.ts.map