Query Hooks
useSql
Query data using SQL.
Query data using the SQL API from frontend applications.
Use Access Policies and multi-tenant JWT tokens to control access to your data.
Props API
query
string
The SQL query.
accessToken
string
Access token used for the query. While you can pass this one to each component, we recommend wrapping components in the AccessTokenProvider
instead:
refetchInterval
number
Interval in milliseconds for refetching the data
retry
boolean
Whether to retry on errors.
propelApiUrl
string
This prop allows you to override the URL for Propel’s GraphQL API. You shouldn’t need to set this unless you are testing.
enabled
boolean
When false, the component will not make any GraphQL requests, default is true.
Was this page helpful?