Cratis Arc core queries without React
Cratis Arc core queries let TypeScript services, view models, and non-React frontends read backend data through generated classes. Call perform() for one result or subscribe() on an observable query for updates, without constructing request URLs yourself. Neither requires Chronicle.
Each result carries data alongside authorization, validation, and readiness information. Read those fields before using the data: an observable query that has not produced a result yet is different from a failed query. When you use the classes in @cratis/arc directly, you also own request cancellation and subscription cleanup. For React components, React Queries covers the hooks built on these classes.
Start with Backend Integration to call a generated query or subscribe to updates. Then use Validation And Behavior to handle missing arguments, superseded requests, and results that are not ready yet.
Capabilities
Section titled “Capabilities”| Capability | What it covers | Learn more |
|---|---|---|
| Query contracts | IQuery, IQueryFor, sorting, paging, and typed execution |
Query Contracts |
| Runtime configuration | Microservice routing, API base path, and observable transport mode | Configuration |
| Validation and behavior | Required arguments, validation results, cancellation, and readiness | Validation And Behavior |
| Backend integration | Calling generated proxies and managing observable subscriptions | Backend Integration |