🚑 uhhh...

This commit is contained in:
ryzetech 2023-01-19 10:00:08 +01:00
parent 5a22b731fd
commit d8ebf3b9c8

5
app.js
View file

@ -31,8 +31,9 @@ let schema = buildSchema(`
`); `);
let root = { let root = {
isOpen: ({ id }) => { isOpen: async ({ id }) => {
return prisma.space.findUnique({ where: { id: id } }).open; let data = await prisma.space.findUnique({ where: { id: id } });
return data.open;
}, },
spaces: () => { spaces: () => {
return prisma.space.findMany(); return prisma.space.findMany();