Module: GraphQL::AssociationBatchResolver

Defined in:
lib/graphql/association_batch_resolver.rb,
lib/graphql/association_batch_resolver/version.rb,
lib/graphql/association_batch_resolver/resolver_builder.rb,
lib/graphql/association_batch_resolver/column_aggregator.rb,
lib/graphql/association_batch_resolver/association_loader.rb,
lib/graphql/association_batch_resolver/association_resolver.rb,
lib/graphql/association_batch_resolver/column_aggregators/mysql_column_aggregator.rb,
lib/graphql/association_batch_resolver/column_aggregators/postgres_column_aggregator.rb

Defined Under Namespace

Modules: ColumnAggregator, MysqlColumnAggregator, PostgresColumnAggregator Classes: AssociationLoader, AssociationResolver, Configuration, Error, InvalidAssociation, InvalidModel, ResolverBuilder

Constant Summary collapse

VERSION =
'0.1.14'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



17
18
19
# File 'lib/graphql/association_batch_resolver.rb', line 17

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



26
27
28
29
# File 'lib/graphql/association_batch_resolver.rb', line 26

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.for(model, association, opts = {}) ⇒ Object



22
23
24
# File 'lib/graphql/association_batch_resolver.rb', line 22

def self.for(model, association, opts = {})
  ResolverBuilder.new(model, association, opts).resolver
end