@nhtio/lucid-resourceful
A decorator-driven AdonisJS library that lets you annotate Lucid ORM models with metadata to automatically generate CRUD controllers, validation rules, OpenAPI schemas, and a unified query interface.
Variables
| Variable | Description |
|---|---|
| resourcefulRouterMacro | - |
| version | The current version of the package. |
Functions
| Function | Description |
|---|---|
| resourcefulBelongsTo | Decorator to define a resourceful belongsTo relationship on a Lucid model property. |
| resourcefulColumn | Decorator to define a resourceful column on a Lucid model property. Applies validation, metadata, and Lucid column options. |
| resourcefulComputed | Decorator to define a resourceful computed accessor on a Lucid model property. Applies validation, metadata, and Lucid computed options. |
| resourcefulHasMany | Decorator to define a resourceful hasMany relationship on a Lucid model property. |
| resourcefulHasManyThrough | Decorator to define a resourceful hasManyThrough relationship on a Lucid model property. |
| resourcefulHasOne | Decorator to define a resourceful hasOne relationship on a Lucid model property. |
| resourcefulManyToMany | Decorator to define a resourceful manyToMany relationship on a Lucid model property. |
| withResourceful | Creates a mixin that adds resourceful CRUD functionality to Lucid models. |
References
definitions
Renames and re-exports @nhtio/lucid-resourceful/definitions
errors
Renames and re-exports @nhtio/lucid-resourceful/errors
odataRouterMacro
Re-exports odataRouterMacro