Sha256: e6c5de8ac8c293aa858c657ab29c58bf8abf1b4bc40c98ddbafb1f50d6aec2ad
Contents?: true
Size: 365 Bytes
Versions: 2
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true module SolidusGraphqlApi module Queries module Taxon class ChildrenQuery attr_reader :taxon def initialize(taxon:) @taxon = taxon end def call SolidusGraphqlApi::BatchLoader.for(taxon, :children, scope: Spree::Taxon.order(:id)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_graphql_api-0.3.1 | lib/solidus_graphql_api/queries/taxon/children_query.rb |
solidus_graphql_api-0.3.0 | lib/solidus_graphql_api/queries/taxon/children_query.rb |