import * as Types from '../types.d' ; import { gql } from '@apollo/client' ; import * as Apollo from '@apollo/client' ; const defaultOptions = { } as const ; export type HeroTypeDependentAliasedFieldQueryVariables = Types . Exact < { episode ? : Types . InputMaybe < Types . Episode > ; } > ; export type HeroTypeDependentAliasedFieldQuery = { __typename ? : 'Query' ; hero ? : { __typename ? : 'Droid' ; property ? : string | null | undefined ; } | { __typename ? : 'Human' ; property ? : string | null | undefined ; } | null | undefined ; } ; export const HeroTypeDependentAliasedFieldDocument = gql `
  query HeroTypeDependentAliasedField($episode: Episode) {
    hero(episode: $episode) {
      ... on Human {
        property: homePlanet
      }
      ... on Droid {
        property: primaryFunction
      }
    }
  }
` ; param baseOptions example export function useHeroTypeDependentAliasedFieldQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < HeroTypeDependentAliasedFieldQuery , HeroTypeDependentAliasedFieldQueryVariables > ( HeroTypeDependentAliasedFieldDocument , options ) ; } export function useHeroTypeDependentAliasedFieldLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < HeroTypeDependentAliasedFieldQuery , HeroTypeDependentAliasedFieldQueryVariables > ( HeroTypeDependentAliasedFieldDocument , options ) ; } export type HeroTypeDependentAliasedFieldQueryHookResult = ReturnType < typeof useHeroTypeDependentAliasedFieldQuery > ; export type HeroTypeDependentAliasedFieldLazyQueryHookResult = ReturnType < typeof useHeroTypeDependentAliasedFieldLazyQuery > ; export type HeroTypeDependentAliasedFieldQueryResult = Apollo . QueryResult < HeroTypeDependentAliasedFieldQuery , HeroTypeDependentAliasedFieldQueryVariables > ;