sdy

create getRooms resolver and typedefs

1 +type Query {
2 + getRooms: [Room]
3 +}
1 +import { prisma } from "../../../utils";
2 +
3 +export default {
4 + Query: {
5 + getRooms: async () => {
6 + return prisma.room.findMany();
7 + },
8 + },
9 +};