Closed maciejtrybilo closed 1 year ago
I've been on it for a good while and just noticed that there is https://github.com/vapor/fluent-kit/pull/555 open already. Please feel free to close!
It seems your proposal is more complete than mine since I stepped over the Through...
loaders, and you have updated tests too.
If this is an issue, I have a non breaking-change where a new protocol is added for these withDeleted
calls.
Anyway, I hope one of the other PR will move forward.
Closing in favour of #555
This change adds
withDeleted: Bool
parameter to thewith()
query building function. For example:will also return stars that are soft deleted.
There are a few tests that I'd still add in EagerLoadTests, but I would like to check with the maintainers if such an approach would be welcome.
Technically it’s a breaking change as it adds the
withDeleted
property to the publicEagerLoader
protocol. In practice It seems to me few clients would be implementing it, so it shouldn't cause much grief if any.