Sha256: 51ecef3723c8eeb9ed5b7c95d41f7df70e04a7543911ceac2fffc80c97c3d247
Contents?: true
Size: 524 Bytes
Versions: 16
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true module Decidim module Core # This type represents the current user session. SessionType = GraphQL::ObjectType.define do name "Session" description "The current session" field :user, UserType, "The current user" do resolve ->(obj, _args, _ctx) { obj } end field :verifiedUserGroups, !types[!UserGroupType], "The current user verified user groups" do resolve ->(obj, _args, _ctx) { obj.user_groups.verified } end end end end
Version data entries
16 entries across 16 versions & 1 rubygems