Calendar view ok

This commit is contained in:
Riccardo
2021-01-06 14:30:07 +01:00
parent 718ca146b1
commit a4a19482f5
7 changed files with 226 additions and 69 deletions

View File

@@ -12,6 +12,12 @@ export const resolvers = {
async allAppointments() {
return await Appointment.find();
},
async oneAppointment(root, args, context, info) {
console.log(args);
return await Appointment.findOne({
_id: args._id
});
},
async allProducts() {
return await Product.find();
},

View File

@@ -8,6 +8,9 @@ type Query {
): Feed!
allProducts: [Product]
allAppointments: [Appointment]
oneAppointment(
_id: ID!
): Appointment
allUsers: [User]
users: [User!]!
}