push code push code
This commit is contained in:
@@ -20,6 +20,7 @@ export class ServiceMeetingRoomSchema extends PothosSchema {
|
||||
@PothosRef()
|
||||
serviceMeetingRoom() {
|
||||
return this.builder.prismaObject('ServiceMeetingRoom', {
|
||||
description: 'A service meeting room in the system.',
|
||||
fields: (t) => ({
|
||||
id: t.exposeID('id'),
|
||||
chattingRoomId: t.exposeString('chattingRoomId'),
|
||||
@@ -34,6 +35,8 @@ export class ServiceMeetingRoomSchema extends PothosSchema {
|
||||
serviceMeetingRoom: t.prismaField({
|
||||
type: this.serviceMeetingRoom(),
|
||||
args: this.builder.generator.findUniqueArgs('ServiceMeetingRoom'),
|
||||
description:
|
||||
'Retrieve a single service meeting room by its unique identifier.',
|
||||
resolve: async (query, root, args, ctx, info) => {
|
||||
return await this.prisma.serviceMeetingRoom.findUnique({
|
||||
...query,
|
||||
@@ -44,6 +47,8 @@ export class ServiceMeetingRoomSchema extends PothosSchema {
|
||||
serviceMeetingRooms: t.prismaField({
|
||||
type: [this.serviceMeetingRoom()],
|
||||
args: this.builder.generator.findManyArgs('ServiceMeetingRoom'),
|
||||
description:
|
||||
'Retrieve a list of service meeting rooms with optional filtering, ordering, and pagination.',
|
||||
resolve: async (query, root, args, ctx, info) => {
|
||||
return await this.prisma.serviceMeetingRoom.findMany({
|
||||
...query,
|
||||
|
||||
Reference in New Issue
Block a user