package mutations import ( "context" "git.aiterp.net/rpdata/api/graphql/resolver/types" "git.aiterp.net/rpdata/api/internal/session" ) // Logout resolves mutation.logout func (r *MutationResolver) Logout(ctx context.Context) (*types.SessionResolver, error) { session := session.FromContext(ctx) session.Logout() return &types.SessionResolver{S: session}, nil }