Sha256: 172765fb0a5cc8c93b3a1cc6f0ac94b7d3765174734b31133d9f8235ba7fc020

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This interface represents an author who owns a resource.
  AuthorInterface = GraphQL::InterfaceType.define do
    name "Author"
    description "An author"

    field :name, !types.String, "The author's name"
    field :nickname, !types.String, "The author's nickname"

    field :avatarUrl, !types.String, "The author's avatar url"
    field :profilePath, !types.String, "The author's profile path"
    field :badge, !types.String, "The author's badge icon"

    field :deleted, !types.Boolean, "Whether the author's account has been deleted or not"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.9.3 lib/decidim/core/api/author_interface.rb
decidim-core-0.9.2 lib/decidim/core/api/author_interface.rb
decidim-core-0.9.1 lib/decidim/core/api/author_interface.rb
decidim-core-0.9.0 lib/decidim/core/api/author_interface.rb