Data access 

Data stored in your Gadget database is accessible via your app's autogenerated API.

Your app's public API has queries for fetching, sort, search, filter or paginate any record(s) stored in your Gadget database. You can make API calls in GraphQL, JS, or React. This approach is typically recommended for arbitrary queries (e.g. a query that includes filters selected by the user on your frontend). You can extend your app's API by adding new models and actions.

You can also extend your app's API to do rich computations using computed fields and computed views. computed fields are a read-only field type that stores predefined queries that Gadget keeps performant. Like any other field type, you can access the computations of queries stored in computed fields by reading them via your API. Computed views are high-level queries that can aggregate, filter, and transform data.

Read more about accessing your app's API in the API Reference.

Was this page helpful?