import * as Types from '../types.d' ; import { gql } from '@apollo/client' ; import { HeroDetailsFragmentDoc } from './HeroDetailsFragment' ; import * as Apollo from '@apollo/client' ; const defaultOptions = { } as const ; export type HeroDetailsWithFragmentQueryVariables = Types . Exact < { episode ? : Types . InputMaybe < Types . Episode > ; } > ; export type HeroDetailsWithFragmentQuery = { __typename ? : 'Query' ; hero ? : { __typename ? : 'Droid' ; primaryFunction ? : string | null | undefined ; name : string ; } | { __typename ? : 'Human' ; height ? : number | null | undefined ; name : string ; } | null | undefined ; } ; export const HeroDetailsWithFragmentDocument = gql `
  query HeroDetailsWithFragment($episode: Episode) {
    hero(episode: $episode) {
      ...HeroDetails
    }
  }
  ${ HeroDetailsFragmentDoc }
` ; param baseOptions example export function useHeroDetailsWithFragmentQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < HeroDetailsWithFragmentQuery , HeroDetailsWithFragmentQueryVariables > ( HeroDetailsWithFragmentDocument , options ) ; } export function useHeroDetailsWithFragmentLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < HeroDetailsWithFragmentQuery , HeroDetailsWithFragmentQueryVariables > ( HeroDetailsWithFragmentDocument , options ) ; } export type HeroDetailsWithFragmentQueryHookResult = ReturnType < typeof useHeroDetailsWithFragmentQuery > ; export type HeroDetailsWithFragmentLazyQueryHookResult = ReturnType < typeof useHeroDetailsWithFragmentLazyQuery > ; export type HeroDetailsWithFragmentQueryResult = Apollo . QueryResult < HeroDetailsWithFragmentQuery , HeroDetailsWithFragmentQueryVariables > ;