feat: add tenant table/logic

This commit is contained in:
piopi 2025-01-13 09:15:06 -05:00
parent a3b02d20eb
commit 46c2af7435
No known key found for this signature in database
GPG key ID: E305BD1ADD33F590

View file

@ -19,6 +19,8 @@ builder.queryFields((t) => ({
users: t.prismaField({ users: t.prismaField({
type: [User], type: [User],
resolve: async () => { resolve: async () => {
// TODO: Fix this when we add a tenant context
// eslint-disable-next-line no-restricted-syntax
return await prisma.user.findMany(); return await prisma.user.findMany();
}, },
}), }),