Sha256: c461ae839c23f71d98759788746bc2f11337f48452735467325ce25ed8d7989a

Contents?: true

Size: 477 Bytes

Versions: 44

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    class OrganizationType < Decidim::Api::Types::BaseObject
      description "The current organization"

      field :name, GraphQL::Types::String, "The name of the current organization", null: true

      field :stats, [Core::StatisticType, { null: true }], description: "The statistics associated to this object", null: true

      def stats
        Decidim.stats.with_context(object)
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-core-0.28.4 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.9 lib/decidim/api/types/organization_type.rb
decidim-core-0.28.3 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.8 lib/decidim/api/types/organization_type.rb
decidim-core-0.28.2 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.7 lib/decidim/api/types/organization_type.rb
decidim-core-0.28.1 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.6 lib/decidim/api/types/organization_type.rb
decidim-core-0.26.10 lib/decidim/api/types/organization_type.rb
decidim-core-0.26.9 lib/decidim/api/types/organization_type.rb
decidim-core-0.28.0 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.5 lib/decidim/api/types/organization_type.rb
decidim-core-0.28.0.rc5 lib/decidim/api/types/organization_type.rb
decidim-core-0.28.0.rc4 lib/decidim/api/types/organization_type.rb
decidim-core-0.26.8 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.4 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.3 lib/decidim/api/types/organization_type.rb
decidim-core-0.26.7 lib/decidim/api/types/organization_type.rb
decidim-core-0.26.5 lib/decidim/api/types/organization_type.rb
decidim-core-0.27.2 lib/decidim/api/types/organization_type.rb