import { useViewerLazyQuery , useViewerQuery } from './viewer.graphql' ; useViewerQuery ( ) ; useViewerQuery ( { variables : { } } ) ; const result = useViewerQuery ( { variables : { id : 'baa' } } ) ; result . data . viewer . status as string ; result . data . viewer . status as number ; const [ getViewer ] = useViewerLazyQuery ( { variables : { id : 'baa' } } ) ; getViewer ( { variables : { } } ) ; getViewer ( { variables : { id : 'baa' } } ) ;