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

GraphQL::Extras::PreloadDefault: preload associations by default #4

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

Conversation

Narazaka
Copy link

In ActiveRecord, I think most of the time you use preload to read in the default relation name.
So I made a custom version of the module that calls preload if the preload option is not false.

@rzane
Copy link
Owner

rzane commented Dec 14, 2023

Hey @Narazaka, I'm really sorry I didn't see this PR or get back to you. Life has been busy!

This is a pretty interesting feature, which some people might appreciate. What are some of the trade-offs with this approach? How would we go about writing tests for this functionality?

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.

None yet

2 participants