useCloudState.io
Search…
useCloudQuery
useCloudQuery is used to get results from cloud queries constructed from the admin console.
Documentation for creating cloud queries can be found here.

Basic Usage

1
const [data, loading, error] = state.hooks.useCloudQuery({
2
queryId: "<QUERY ID>",
3
variables: { foo: "bar" }
4
});
Copied!

Parameters

queryId

The id that you set in the admin console for a specific query.

variables

An object containing the run-time variables to your cloud query.
Copy link