A suspensful hook to run a GraphQL query
useQuery()
of
Apollo
useQuery()
hooks; this hook is custom to the Attio runtime for running GraphQL queries against the Attio
GraphQL Schema.<React.Suspense/>
component
and give it a fallback
component to render until the query has completed.useQuery()
hook in a component, they will be executed in sequence,
not parallel! Sometimes this is desired, but sometimes you might want to
run them in parallel.
query : string
import
this value from a .graphql
or .gql
file,
the variables and return value with be strongly typed.Read more.variables? : Record<string, any>
Record<string, any>
runQuery()
and useAsyncCache()
like so: