Sha256: ae0d023d2506a13112355aa63c7de395a751f76ad8ca41a8d1181ce37cf009c6
Contents?: true
Size: 1.72 KB
Versions: 25
Compression:
Stored size: 1.72 KB
Contents
# frozen_string_literal: true module Decidim module Meetings MeetingType = GraphQL::ObjectType.define do name "Meeting" description "A meeting" interfaces [ -> { Decidim::Comments::CommentableInterface }, -> { Decidim::Core::CategorizableInterface }, -> { Decidim::Core::ScopableInterface }, -> { Decidim::Core::AttachableInterface } ] field :id, !types.ID field :reference, !types.String field :title, !Decidim::Core::TranslatedFieldType, "The title of this meeting." field :startTime, !Decidim::Core::DateTimeType, "The time this meeting starts", property: :start_time field :endTime, !Decidim::Core::DateTimeType, "The time this meeting ends", property: :end_time field :closed, !types.Boolean, "Whether this meeting is closed or not.", property: :closed? field :closingReport, Decidim::Core::TranslatedFieldType, "The closing report of this meeting.", property: :closing_report field :registrationsEnabled, !types.Boolean, "Whether the registrations are enabled or not", property: :registrations_enabled field :remainingSlots, types.Int, "Amount of slots available for this meeting", property: :remaining_slots field :attendeeCount, types.Int, "Amount of attendees to this meeting", property: :attendees_count field :contributionCount, types.Int, "Amount of contributions to this meeting", property: :contributions_count field :address, types.String, "The physical address of this meeting" field :coordinates, Decidim::Core::CoordinatesType, "Physical coordinates for this meeting" do resolve ->(meeting, _args, _ctx) { [meeting.latitude, meeting.longitude] } end end end end
Version data entries
25 entries across 25 versions & 1 rubygems