feat: add tenant table/logic
This commit is contained in:
parent
a3b02d20eb
commit
46c2af7435
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue