4using System.Threading.Tasks;
 
    7using HotChocolate.Data;
 
    8using HotChocolate.Types;
 
    9using HotChocolate.Types.Relay;
 
   29            CancellationToken cancellationToken)
 
   31            ArgumentNullException.ThrowIfNull(userGroupAuthority);
 
 
   42        public ValueTask<UserGroup?> 
ById(
 
   45            CancellationToken cancellationToken)
 
   59            ArgumentNullException.ThrowIfNull(userGroupAuthority);
 
   61                authority => authority.Queryable(
false));
 
 
   78            ArgumentNullException.ThrowIfNull(userAuthority);
 
   80                authority => authority
 
   82                queryable => queryable.Where(user => user.GroupId == groupId));
 
 
 
Represents a group of Users.
 
static ValueTask< UserGroup?> GetUserGroup(long id, [Service] IGraphQLAuthorityInvoker< IUserGroupAuthority > userGroupAuthority, CancellationToken cancellationToken)
Node resolver for Users.
 
Wrapper for accessing UserGroups.
 
ValueTask< UserGroup?> ById([ID(nameof(UserGroup))] long id, [Service] IGraphQLAuthorityInvoker< IUserGroupAuthority > userGroupAuthority, CancellationToken cancellationToken)
Gets a UserGroup by Entity.Id.
 
async ValueTask< IQueryable< User > > QueryableUsersByGroupId([ID(nameof(UserGroup))] long groupId, [Service] IGraphQLAuthorityInvoker< IUserAuthority > userAuthority)
Queries all registered Users in a UserGroup indicated by groupId .
 
ValueTask< UserGroup?> Current([Service] IGraphQLAuthorityInvoker< IUserGroupAuthority > userGroupAuthority, CancellationToken cancellationToken)
Gets the current User.
 
async ValueTask< IQueryable< UserGroup > > QueryableGroups([Service] IGraphQLAuthorityInvoker< IUserGroupAuthority > userGroupAuthority)
Queries all registered UserGroups.
 
A user registered in the server.
 
Invokes TAuthority s from GraphQL endpoints.