import * as Types from '../types.d' ; import { gql } from '@apollo/client' ; import * as Apollo from '@apollo/client' ; const defaultOptions = { } as const ; export type HeroAppearsInQueryVariables = Types . Exact < { [ key ] : never ; } > ; export type HeroAppearsInQuery = { __typename ? : 'Query' ; hero ? : { __typename ? : 'Droid' ; name : string ; appearsIn : Array < Types . Episode | null | undefined > ; } | { __typename ? : 'Human' ; name : string ; appearsIn : Array < Types . Episode | null | undefined > ; } | null | undefined ; } ; export const HeroAppearsInDocument = gql `
  query HeroAppearsIn {
    hero {
      name
      appearsIn
    }
  }
` ; param baseOptions example export function useHeroAppearsInQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < HeroAppearsInQuery , HeroAppearsInQueryVariables > ( HeroAppearsInDocument , options ) ; } export function useHeroAppearsInLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < HeroAppearsInQuery , HeroAppearsInQueryVariables > ( HeroAppearsInDocument , options ) ; } export type HeroAppearsInQueryHookResult = ReturnType < typeof useHeroAppearsInQuery > ; export type HeroAppearsInLazyQueryHookResult = ReturnType < typeof useHeroAppearsInLazyQuery > ; export type HeroAppearsInQueryResult = Apollo . QueryResult < HeroAppearsInQuery , HeroAppearsInQueryVariables > ;