feat: db schema update from string to json column type

This commit is contained in:
Mir Arif Hasan
2023-01-24 15:10:54 +06:00
parent 33e4a15830
commit ebbe015bbc
7 changed files with 84 additions and 50 deletions

View File

@@ -1,4 +1,4 @@
import { ObjectType, ID, Field } from '@nestjs/graphql';
import { ObjectType, ID, Field, InputType } from '@nestjs/graphql';
@ObjectType()
export class User {
@@ -37,3 +37,34 @@ export class User {
})
currentGQLSession?: string;
}
@InputType()
export class UpdateUserInput {
@Field({
nullable: true,
name: 'displayName',
description: 'Displayed name of the user (if given)',
})
displayName?: string;
@Field({
nullable: true,
name: 'photoURL',
description: 'URL to the profile photo of the user (if given)',
})
photoURL?: string;
@Field({
nullable: true,
name: 'currentRESTSession',
description: 'JSON string of the saved REST session',
})
currentRESTSession?: string;
@Field({
nullable: true,
name: 'currentGQLSession',
description: 'JSON string of the saved GQL session',
})
currentGQLSession?: string;
}