Skip to content
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

Nested eager loading with deleted #712

Open
pencasolutions opened this issue Dec 14, 2020 · 0 comments
Open

Nested eager loading with deleted #712

pencasolutions opened this issue Dec 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@pencasolutions
Copy link

pencasolutions commented Dec 14, 2020

Is your feature request related to a problem? Please describe.
Currently we cannot use a .withDeleted() on a nested eager load, this is causing an issue when trying to account for soft deleted items within a relationship.

Describe the solution you'd like
Something similar to:
Item1.query(on: req.db) .withSoftDeletesIncluded(\.$model)
Item1.query(on: req.db) .withDeleted(\.$model)

Describe alternatives you've considered
Currently I query separately rather than nesting so I can include soft deletes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant