ba me oi con thanh cong roi

This commit is contained in:
2024-10-14 23:05:35 +07:00
parent 76ff5d28ac
commit 0ac5868d2d
18 changed files with 365 additions and 138 deletions

View File

@@ -59,5 +59,17 @@ export class MessageSchema extends PothosSchema {
},
}),
}));
// mutations
// subscriptions
// this.builder.subscriptionFields((t) => ({
// messageSent: t.field({
// subscribe: (_parent, _args, ctx) => {
// return ctx.pubSub.asyncIterator('MESSAGE_SENT');
// },
// resolve: (payload) => payload as any,
// }),
// }));
}
}