Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
07e404b089
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (13 sloc) 471 Bytes
import { OperationVariables, QueryResult } from '@apollo/react-common';
import { DocumentNode } from 'graphql';
import { QueryHookOptions } from './types';
import { useBaseQuery } from './utils/useBaseQuery';
export function useQuery<TData = any, TVariables = OperationVariables>(
query: DocumentNode,
options?: QueryHookOptions<TData, TVariables>
) {
return useBaseQuery<TData, TVariables>(query, options, false) as QueryResult<
TData,
TVariables
>;
}