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

$eager not working when _patch is called and allowedUpsert is configured #174

Open
estephan opened this issue Mar 30, 2022 · 0 comments
Open

Comments

@estephan
Copy link

I'm not sure if this is the expected behaviour or not, but when I configure a service with allowedUpsert and call _patch with $eager, the returned value does not contain the relations specified in the eager expression.

I have put together this codesandbox to highlight the issue.
Notice that if allowedUpsert config is removed from line 60, the expected result is returned with the subTask value populated.

Versions
feathers-objection: 7.5.4
objection: 3.0.1
knex: 1.0.4

@estephan estephan changed the title $eager not working when _.patch is called and allowedUpsert is configured $eager not working when _patch is called and allowedUpsert is configured Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant