Sha256: 02910d91bf13c007fbc220207b6e0c3355ccbd5fc8a4069639dfcb69459aa4ab
Contents?: true
Size: 482 Bytes
Versions: 37
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module Decidim # 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
Version data entries
37 entries across 37 versions & 2 rubygems