Sha256: 60826cb038cdb8edcce57bce78d28836bf4a39fa789f7844a5543606ccc360e0

Contents?: true

Size: 702 Bytes

Versions: 31

Compression:

Stored size: 702 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

      field :rubyVersion, !types.String, "The current ruby version" do
        resolve ->(_, _, _) { RUBY_VERSION }
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-core-0.21.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.20.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.20.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.19.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.18.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.19.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.17.2 app/types/decidim/core/decidim_type.rb
decidim-core-0.18.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.17.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.16.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.17.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.16.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.15.2 app/types/decidim/core/decidim_type.rb
decidim-core-0.15.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.15.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.14.4 app/types/decidim/core/decidim_type.rb
decidim-core-0.14.3 app/types/decidim/core/decidim_type.rb
decidim-core-0.14.2 app/types/decidim/core/decidim_type.rb
decidim-core-0.14.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.13.1 app/types/decidim/core/decidim_type.rb