Sha256: 1c8d4c6858e1d90faaad3fd382b52f5cd07f0c863815a184283ea131917bc7c3

Contents?: true

Size: 575 Bytes

Versions: 9

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    # This type represents a Decidim's global property.
    DecidimType = GraphQL::ObjectType.define do
      name "Decidim"
      description "Decidim's framework-related properties."

      field :version, !types.String, "The current decidim's version of this deployment." do
        resolve ->(obj, _args, _ctx) { obj.version }
      end

      field :applicationName, !types.String, "The current installation's name." do
        resolve ->(obj, _args, _ctx) { obj.application_name }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/types/decidim/core/decidim_type.rb
decidim-core-0.23.5 app/types/decidim/core/decidim_type.rb
decidim-core-0.23.4 app/types/decidim/core/decidim_type.rb
decidim-core-0.23.3 app/types/decidim/core/decidim_type.rb
decidim-core-0.23.2 app/types/decidim/core/decidim_type.rb
decidim-core-0.23.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.23.1.rc1 app/types/decidim/core/decidim_type.rb
decidim-core-0.23.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.22.0 app/types/decidim/core/decidim_type.rb