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:
10
packages/hoppscotch-backend/src/admin/infra.model.ts
Normal file
10
packages/hoppscotch-backend/src/admin/infra.model.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Field, ObjectType } from '@nestjs/graphql';
|
||||
import { Admin } from './admin.model';
|
||||
|
||||
@ObjectType()
|
||||
export class Infra {
|
||||
@Field(() => Admin, {
|
||||
description: 'Admin who executed the action',
|
||||
})
|
||||
executedBy: Admin;
|
||||
}
|
||||
Reference in New Issue
Block a user