🚑 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 = {
isOpen: ({ id }) => {
return prisma.space.findUnique({ where: { id: id } }).open;
isOpen: async ({ id }) => {
let data = await prisma.space.findUnique({ where: { id: id } });
return data.open;
},
spaces: () => {
return prisma.space.findMany();