sdy

create getRooms resolver and typedefs

type Query {
getRooms: [Room]
}
import { prisma } from "../../../utils";
export default {
Query: {
getRooms: async () => {
return prisma.room.findMany();
},
},
};