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:
Mir Arif Hasan
2023-10-30 17:03:43 +06:00
committed by GitHub
parent d1c9c3583f
commit 59b5a50a97
7 changed files with 3042 additions and 4432 deletions

View File

@@ -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',
]) {}