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.12.2 app/types/decidim/core/decidim_type.rb
decidim-core-0.13.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.12.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.13.0.pre1 app/types/decidim/core/decidim_type.rb
decidim-core-0.12.0 app/types/decidim/core/decidim_type.rb
decidim-core-0.11.2 app/types/decidim/core/decidim_type.rb
decidim-core-0.12.0.pre app/types/decidim/core/decidim_type.rb
decidim-core-0.11.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.11.0.pre1 app/types/decidim/core/decidim_type.rb
decidim-core-0.10.1 app/types/decidim/core/decidim_type.rb
decidim-core-0.10.0 app/types/decidim/core/decidim_type.rb