Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.1 KB

File metadata and controls

30 lines (26 loc) · 1.1 KB
title useLazyQuery
description Apollo Client API reference

{/* @import {MDXProvidedComponents} from '../../../shared/MdxProvidedComponents.js' */}

```ts [execute: LazyQueryExecFunction, result: QueryResult] ```

A tuple of two values:

Function that can be triggered to execute the query. The `useLazyQuery` function returns a promise that fulfills with a query result when the query succeeds or fails. The result of the query. See the `useQuery` hook for more details.