What problem does it solve?
DXOS Operations provide a first-class abstraction for unit of callable logic that couples a typed input with a typed output and a lazy-loaded handler, enabling safer, composable, and deployable business logic within DXOS apps.
Core Features & Use Cases
- Type-safe definitions and serialized definitions that separate runtime logic from definitions
- Deployable and lazy-loadable handlers with dynamic imports and optional services
- Migration path from FunctionDefinition to Operation.make and Operation.withHandler for existing codebases
- Real-world usage: define an operation for fetching and validating user data, then invoke it from a DXOS service or client
Quick Start
Create a definition with Operation.make, attach a handler with Operation.withHandler, and import and use the operation as needed