Sha256: 0bab3260d870540fbf2dc18b57708118b228285c5a2d10117288a9b22cb33d0c

Contents?: true

Size: 561 Bytes

Versions: 9

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Surveys
    SurveyType = GraphQL::ObjectType.define do
      name "Survey"
      description "A survey"

      field :id, !types.ID, "The internal ID for this survey"
      field :createdAt, Decidim::Core::DateTimeType, "The time this survey was created", property: :created_at
      field :updatedAt, Decidim::Core::DateTimeType, "The time this survey was updated", property: :updated_at
      field :questionnaire, Decidim::Forms::QuestionnaireType, "The questionnaire for this survey"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-surveys-0.23.6 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.23.5 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.23.4 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.23.3 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.23.2 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.23.1 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.23.1.rc1 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.23.0 app/types/decidim/surveys/survey_type.rb
decidim-surveys-0.22.0 app/types/decidim/surveys/survey_type.rb