Sha256: 4915eda267ddaec2c57d3ee0a658387552f197e8d6eb23f2df8901a2e9e00901
Contents?: true
Size: 594 Bytes
Versions: 50
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true module Decidim module Forms # This interface should be implemented by any Type that can be linked to a questionnaire # The only requirement is to have an ID and the Type name be the class.name + Type module QuestionnaireEntityInterface include Decidim::Api::Types::BaseInterface description "An interface that can be used in objects with questionnaires" field :id, GraphQL::Types::ID, "ID of this entity", null: false def self.resolve_type(obj, _ctx) "#{obj.class.name}Type".constantize end end end end
Version data entries
50 entries across 50 versions & 1 rubygems