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

Give preload callbacks access to the loaded model #61

Open
yansal opened this issue Jun 6, 2019 · 0 comments
Open

Give preload callbacks access to the loaded model #61

yansal opened this issue Jun 6, 2019 · 0 comments
Labels

Comments

@yansal
Copy link
Contributor

yansal commented Jun 6, 2019

I'm opening this issue only to record an idea.

It would be cool if we could add logic to preload callbacks, depending on values in parent models.

Example: we have a table foo with a column bars_count and another table bar with a foreign key to foo.

This feature would allow to avoid running the bar preload query if bars_count == 0.

@yansal yansal added the ideas label Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant