Sha256: 2925cf3c0e39c50165f741b3bed07ad9c4867e51804e5ea4597b86e68278d496
Contents?: true
Size: 628 Bytes
Versions: 4
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true module SolidusGraphqlApi module Types class Taxonomy < Base::RelayNode description 'Taxonomy.' field :name, String, null: false field :root_taxon, Taxon, null: true field :taxons, Taxon.connection_type, null: false field :created_at, GraphQL::Types::ISO8601DateTime, null: true field :updated_at, GraphQL::Types::ISO8601DateTime, null: true def root_taxon Queries::Taxonomy::RootTaxonQuery.new(taxonomy: object).call end def taxons Queries::Taxonomy::TaxonsQuery.new(taxonomy: object).call end end end end
Version data entries
4 entries across 4 versions & 1 rubygems