Skip to content

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

Open
Narazaka wants to merge 1 commit intorzane:masterfrom
Narazaka:preload-default
Open

GraphQL::Extras::PreloadDefault: preload associations by default#4
Narazaka wants to merge 1 commit intorzane:masterfrom
Narazaka:preload-default

Conversation

@Narazaka
Copy link
Copy Markdown

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
Copy Markdown
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.

2 participants