apollo-mobx
Version:
HOC for querying graphql server
3 lines (2 loc) • 350 B
TypeScript
import { ChildProps, ComponentDecorator, OperationOption } from './interface';
export declare function graphql<DataResult = {}, QueryProps = {}, TChildProps = ChildProps<QueryProps, DataResult>>(query: any, {options, props, name, waitForData, loadingComponent}?: OperationOption<QueryProps, DataResult>): ComponentDecorator<QueryProps, TChildProps>;