Replies: 1 comment
-
First: If you are using BaseModel out of the box, whenever you try to query, adonis uses snake case. To over come this, first create your own Strategy to use Camel case which extends base model instead of snake case and use that in place of base model. Second: For soft delete you can use the npm package: https://www.npmjs.com/package/adonis-lucid-soft-deletes . Out of the box only delete is supported as far as Ik. And also ensure the table you migrated has the deleted at column. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the error is Property 'deletedAt' does not exist on type 'LucidRow'. Did you mean 'delete'? ts(2551)
Beta Was this translation helpful? Give feedback.
All reactions