import * as Types from '../types.d' ; import { gql } from '@apollo/client' ; import * as Apollo from '@apollo/client' ; const defaultOptions = { } as const ; export type HeroNameConditionalInclusionQueryVariables = Types . Exact < { episode ? : Types . InputMaybe < Types . Episode > ; includeName : Types . Scalars [ 'Boolean' ] ; } > ; export type HeroNameConditionalInclusionQuery = { __typename ? : 'Query' ; hero ? : { __typename ? : 'Droid' ; name ? : string ; } | { __typename ? : 'Human' ; name ? : string ; } | null | undefined ; } ; export type HeroNameConditionalExclusionQueryVariables = Types . Exact < { episode ? : Types . InputMaybe < Types . Episode > ; skipName : Types . Scalars [ 'Boolean' ] ; } > ; export type HeroNameConditionalExclusionQuery = { __typename ? : 'Query' ; hero ? : { __typename ? : 'Droid' ; name ? : string ; } | { __typename ? : 'Human' ; name ? : string ; } | null | undefined ; } ; export const HeroNameConditionalInclusionDocument = gql `
  query HeroNameConditionalInclusion($episode: Episode, $includeName: Boolean!) {
    hero(episode: $episode) {
      name @include(if: $includeName)
    }
  }
` ; param baseOptions example export function useHeroNameConditionalInclusionQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < HeroNameConditionalInclusionQuery , HeroNameConditionalInclusionQueryVariables > ( HeroNameConditionalInclusionDocument , options ) ; } export function useHeroNameConditionalInclusionLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < HeroNameConditionalInclusionQuery , HeroNameConditionalInclusionQueryVariables > ( HeroNameConditionalInclusionDocument , options ) ; } export type HeroNameConditionalInclusionQueryHookResult = ReturnType < typeof useHeroNameConditionalInclusionQuery > ; export type HeroNameConditionalInclusionLazyQueryHookResult = ReturnType < typeof useHeroNameConditionalInclusionLazyQuery > ; export type HeroNameConditionalInclusionQueryResult = Apollo . QueryResult < HeroNameConditionalInclusionQuery , HeroNameConditionalInclusionQueryVariables > ; export const HeroNameConditionalExclusionDocument = gql `
  query HeroNameConditionalExclusion($episode: Episode, $skipName: Boolean!) {
    hero(episode: $episode) {
      name @skip(if: $skipName)
    }
  }
` ; param baseOptions example export function useHeroNameConditionalExclusionQuery ( baseOptions ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useQuery < HeroNameConditionalExclusionQuery , HeroNameConditionalExclusionQueryVariables > ( HeroNameConditionalExclusionDocument , options ) ; } export function useHeroNameConditionalExclusionLazyQuery ( baseOptions ? ) { const options = { ... defaultOptions , ... baseOptions } ; return Apollo . useLazyQuery < HeroNameConditionalExclusionQuery , HeroNameConditionalExclusionQueryVariables > ( HeroNameConditionalExclusionDocument , options ) ; } export type HeroNameConditionalExclusionQueryHookResult = ReturnType < typeof useHeroNameConditionalExclusionQuery > ; export type HeroNameConditionalExclusionLazyQueryHookResult = ReturnType < typeof useHeroNameConditionalExclusionLazyQuery > ; export type HeroNameConditionalExclusionQueryResult = Apollo . QueryResult < HeroNameConditionalExclusionQuery , HeroNameConditionalExclusionQueryVariables > ;