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

Add extension hooks #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kinglozzer
Copy link

This might be too opinionated, but I’ve forked the module so figured I’d submit a pull request in case you think the hooks are useful

Our use case is that we’re querying products via graphql, each product has_many attributes. Each product can have potentially hundreds of different attributes, but we only want to show a few of them, so these hooks allow us to pre-filter the eager loaded rows, which saves loading thousands of rows that would just be discarded client-side anyway

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

Successfully merging this pull request may close these issues.

1 participant