Sha256: ab445c9701be724bcfa3c5cc7b78e25b4fc4c250657598622d3689b70fe20299
Contents?: true
Size: 913 Bytes
Versions: 8
Compression:
Stored size: 913 Bytes
Contents
# frozen_string_literal: true module Decidim module Budgets BudgetType = GraphQL::ObjectType.define do interfaces [ -> { Decidim::Core::ScopableInterface }, -> { Decidim::Core::TraceableInterface } ] name "Budget" description "A budget" field :id, !types.ID, "The internal ID of this budget" field :title, !Decidim::Core::TranslatedFieldType, "The title for this budget" field :description, !Decidim::Core::TranslatedFieldType, "The description for this budget" field :total_budget, !types.Int, "The total budget" field :createdAt, Decidim::Core::DateTimeType, "When this budget was created", property: :created_at field :updatedAt, Decidim::Core::DateTimeType, "When this budget was updated", property: :updated_at field :projects, !types[Decidim::Budgets::ProjectType], "The projects for this budget" end end end
Version data entries
8 entries across 8 versions & 1 rubygems