feat: added user environment user environments resolvers, service files

This commit is contained in:
ankitsridhar16
2022-12-13 13:27:51 +05:30
parent b4b63f86d9
commit ce94255a9e
5 changed files with 526 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class UserEnvironment {
@Field(() => ID, {
description: 'ID of the User Environment',
})
id: string;
@Field(() => ID, {
description: 'ID of the user this environment belongs to',
})
userUid: string;
@Field(() => String, {
nullable: true,
description: 'Name of the environment',
})
name: string | null | undefined;
@Field({
description: 'All variables present in the environment',
})
variables: string; // JSON string of the variables object (format:[{ key: "bla", value: "bla_val" }, ...] ) which will be received from the client
@Field({
description: 'isGlobal flag to indicate the environment is global or not',
})
isGlobal: boolean;
}