update user schema
This commit is contained in:
Submodule epess-database updated: 3b4cc1941d...53c2784cad
@@ -35,6 +35,12 @@ export class UserSchema extends PothosSchema {
|
|||||||
phoneNumber: t.exposeString('phoneNumber', {
|
phoneNumber: t.exposeString('phoneNumber', {
|
||||||
description: 'The phone number of the user.',
|
description: 'The phone number of the user.',
|
||||||
}),
|
}),
|
||||||
|
bankBin: t.exposeString('bankBin', {
|
||||||
|
description: 'The bank bin of the user.',
|
||||||
|
}),
|
||||||
|
bankAccountNumber: t.exposeString('bankAccountNumber', {
|
||||||
|
description: 'The bank account number of the user.',
|
||||||
|
}),
|
||||||
role: t.exposeString('role', {
|
role: t.exposeString('role', {
|
||||||
description: 'The role of the user.',
|
description: 'The role of the user.',
|
||||||
}),
|
}),
|
||||||
@@ -83,6 +89,18 @@ export class UserSchema extends PothosSchema {
|
|||||||
@Pothos()
|
@Pothos()
|
||||||
init(): void {
|
init(): void {
|
||||||
this.builder.queryFields((t) => ({
|
this.builder.queryFields((t) => ({
|
||||||
|
// me: t.prismaField({
|
||||||
|
// description: 'Retrieve the current user.',
|
||||||
|
// type: this.user(),
|
||||||
|
// resolve: async (query, root, args, ctx, info) => {
|
||||||
|
// const sessionId = ctx.req.headers.sessionId;
|
||||||
|
// const userId = await clerkClient.users.getUser()
|
||||||
|
// return await this.prisma.user.findUnique({
|
||||||
|
// where: { id: ctx.req.headers.authorization },
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// }),
|
||||||
|
|
||||||
users: t.prismaField({
|
users: t.prismaField({
|
||||||
description:
|
description:
|
||||||
'Retrieve a list of users with optional filtering, ordering, and pagination.',
|
'Retrieve a list of users with optional filtering, ordering, and pagination.',
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user