Sha256: 28021cf61994b5fc61164f491481cfb3e1feb2c6847553bae4542d3f95206915
Contents?: true
Size: 480 Bytes
Versions: 5
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true module Decidim # This type represents a UserGroup UserGroupType = GraphQL::ObjectType.define do name "UserGroup" description "A user group" interfaces [ Decidim::AuthorInterface ] field :id, !types.ID, "The user group's id" field :name, !types.String, "The user group's name" field :avatarUrl, !types.String, "The user's avatar url" do resolve ->(obj, _args, _ctx) { obj.avatar.url } end end end
Version data entries
5 entries across 5 versions & 1 rubygems