Method: GraphQL::Dataloader#with
- Defined in:
-
lib/graphql/dataloader.rb,
lib/graphql/dataloader.rb
truffle-ruby wasn't doing well with the implementation below
112 113 114 115 116 117 118 119 |
# File 'lib/graphql/dataloader.rb', line 112 def with(source_class, *batch_args) batch_key = source_class.batch_key_for(*batch_args) @source_cache[source_class][batch_key] ||= begin source = source_class.new(*batch_args) source.setup(self) source end end |