HBE-296 feat: introducing 'infra' type and splitting model properties between 'admin' and 'infra' (#3445)
* feat: infra type added in admin module * feat: infra-resolver added in admin module * feat: feedback resolved * feat: deprecated tag added in some admin ResolveFields * build: update pnpm-lock file * feat: add field in infra type * feat: admin extends user partially * feat: admin extends user with omitting some fields * chore: remove unused imports * build: conflict resolve in pnpm lock file
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { ObjectType, OmitType } from '@nestjs/graphql';
|
||||
import { User } from 'src/user/user.model';
|
||||
|
||||
@ObjectType()
|
||||
export class Admin {}
|
||||
export class Admin extends OmitType(User, [
|
||||
'isAdmin',
|
||||
'currentRESTSession',
|
||||
'currentGQLSession',
|
||||
]) {}
|
||||
|
||||
Reference in New Issue
Block a user