-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript: Property does not exist on type #23
Comments
I am experiencing the same situation. I am not able to use |
Same problem here, happened after upgrading lucid and typescript
Luckily it's just a type error and everything seems to keep working! |
Hello devs! My solutions for this: const entity = await Entity.withTrashed().where('id', id).firstOrFail()
await entity.merge({ deleted_at: null }).save() I hope help you ☕ |
Found an issue here adonis-lucid-soft-deletes/src/mixin.ts Line 69 in 71d21fb
This causes the returntype of your query to be |
When using
withTrashed()
in Adonis 6, I getProperty 'restore' does not exist on type...
This is my User model:
I am not sure what could be causing the issue?
This also seems to happen on
.withTrashed()
when I use.query()
ahead of it:await User.query().withTrashed().where('id', id).firstOrFail()
The text was updated successfully, but these errors were encountered: