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