You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for using naturalSort to sort the migration files. It will be enabled for all new projects. Not recommended for exisiting projects, since it may change the order in certain situations
Add wherePivotNull method to add is null constraint in the pivot table.
Add withAggregate to work along side withCount, but for all other aggregates like max, min, avg and so on.
Add support to retrieve plain Javascript objects from a Model query using the pojo method. For example
Add support for wrapping where clauses to its own group. It is an advanced API meant to be used by the global scopes in the future. Release blog post will cover this feature in-depth
Breaking changes
Removed orm property from the config/database.ts file in favor of namingStrategy. It allows defining naming strategies for the models and pagination class.
The queries with aggregates now returns a model instance, earlier it used to be a plain object. One can use the new pojo method to retain the old behavior
Deprecations
deprecate model.preload in favor of model.load. The preload method doesn't fit the behavior, since we never preload a relationship from an existing model instance. For example:
// Not really preloading 🤷♂️. Its infact post loadingawaituser.preload('comments')// New APIawaituser.load('comments')