Class: SolidusGraphqlApi::Types::Taxon

Inherits:
Base::RelayNode show all
Defined in:
lib/solidus_graphql_api/types/taxon.rb

Instance Method Summary collapse

Methods inherited from Base::Object

remove_field

Instance Method Details

#childrenObject



28
29
30
# File 'lib/solidus_graphql_api/types/taxon.rb', line 28

def children
  Queries::Taxon::ChildrenQuery.new(taxon: object).call
end

#icon_urlObject



20
21
22
# File 'lib/solidus_graphql_api/types/taxon.rb', line 20

def icon_url
  object.icon.url
end

#parent_taxonObject



24
25
26
# File 'lib/solidus_graphql_api/types/taxon.rb', line 24

def parent_taxon
  Queries::Taxon::ParentTaxonQuery.new(taxon: object).call
end