Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Active Record AssociationLoader and RecordLoader examples #64
This adds a couple of examples for a RecordLoader and AssociationLoader that work with Active Record and links to those examples in the README.
Each of these handle a problem that a naive loader would have:
These are just examples, since I didn't want to add an active record dependency to this library.
Cool, should help newcomers a lot.
I wrote this a while ago for an easy plug and play solution in graphql ruby: https://github.com/xuorig/graphql-active_record_batcher
might be cool to link it
I love the way fields preloads are specified declaratively in a similar way to how we do it at Shopify. Maybe we should just add the examples to that repo and link to it instead. The gemspec in that repo could also use a github link so that the repo can be easily found from its rubygems page