type Maybe = T | null; /** 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 = { f?: Maybe; }; export type Query = { f?: Maybe; }; export type MyQueryQueryVariables = {}; export type MyQueryQuery = { __typename?: 'Query' } & Pick; import gql from 'graphql-tag'; import * as React from 'react'; import * as ReactApollo from 'react-apollo'; export type Omit = Pick>; export const MyQueryDocument = gql` query MyQuery { f } `; export const MyQueryComponent = (props: Omit, 'query'>, 'variables'> & { variables?: MyQueryQueryVariables }) => ( query={MyQueryDocument} {...props} /> ); export type MyQueryProps = Partial> & TChildProps; export function withMyQuery(operationOptions?: ReactApollo.OperationOption>) { return ReactApollo.withQuery>(MyQueryDocument, operationOptions); }