import gql from 'graphql-tag'; import * as React from 'react'; import * as ApolloReactCommon from '@apollo/react-common'; import * as ApolloReactComponents from '@apollo/react-components'; import * as ApolloReactHoc from '@apollo/react-hoc'; export type Maybe = T | null; export type Omit = Pick>; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string, String: string, Boolean: boolean, Int: number, Float: number, }; export type MyType = { __typename?: 'MyType', f?: Maybe, }; export type Query = { __typename?: 'Query', f?: Maybe, }; export type MyQueryQueryVariables = {}; export type MyQueryQuery = ( { __typename?: 'Query' } & Pick ); export const MyQueryDocument = gql` query MyQuery { f } `; export type MyQueryComponentProps = Omit, 'query'>; export const MyQueryComponent = (props: MyQueryComponentProps) => ( query={MyQueryDocument} {...props} /> ); export type MyQueryProps = ApolloReactHoc.DataProps & TChildProps; export function withMyQuery(operationOptions?: ApolloReactHoc.OperationOption< TProps, MyQueryQuery, MyQueryQueryVariables, MyQueryProps>) { return ApolloReactHoc.withQuery>(MyQueryDocument, { alias: 'myQuery', ...operationOptions }); }; export type MyQueryQueryResult = ApolloReactCommon.QueryResult;