Sha256: 3af50663b9de2ce2099fde275b7c66992dfe0f169f981d18ef691238ff3deebd

Contents?: true

Size: 508 Bytes

Versions: 40

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    OrganizationType = GraphQL::ObjectType.define do
      name "Organization"
      description "The current organization"

      field :name, types.String, "The name of the current organization"

      field :stats do
        type types[Core::StatisticType]
        description "The statistics associated to this object"
        resolve ->(object, _args, _ctx) {
          Decidim.stats.with_context(object)
        }
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/types/decidim/core/organization_type.rb
decidim-core-0.23.5 app/types/decidim/core/organization_type.rb
decidim-core-0.23.4 app/types/decidim/core/organization_type.rb
decidim-core-0.23.3 app/types/decidim/core/organization_type.rb
decidim-core-0.23.2 app/types/decidim/core/organization_type.rb
decidim-core-0.23.1 app/types/decidim/core/organization_type.rb
decidim-core-0.23.1.rc1 app/types/decidim/core/organization_type.rb
decidim-core-0.23.0 app/types/decidim/core/organization_type.rb
decidim-core-0.22.0 app/types/decidim/core/organization_type.rb
decidim-core-0.21.0 app/types/decidim/core/organization_type.rb
decidim-core-0.20.1 app/types/decidim/core/organization_type.rb
decidim-core-0.20.0 app/types/decidim/core/organization_type.rb
decidim-core-0.19.1 app/types/decidim/core/organization_type.rb
decidim-core-0.18.1 app/types/decidim/core/organization_type.rb
decidim-core-0.19.0 app/types/decidim/core/organization_type.rb
decidim-core-0.17.2 app/types/decidim/core/organization_type.rb
decidim-core-0.18.0 app/types/decidim/core/organization_type.rb
decidim-core-0.17.1 app/types/decidim/core/organization_type.rb
decidim-core-0.16.1 app/types/decidim/core/organization_type.rb
decidim-core-0.17.0 app/types/decidim/core/organization_type.rb