Sha256: e5edf68be1a32bcb0e4e0711a0e0422c18cc460454e6bbf5a83d0296020e0781
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-core-0.2.0 | lib/decidim/core/api/user_group_type.rb |