Calendar view ok
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
@@ -8,6 +8,9 @@ type Query {
|
||||
): Feed!
|
||||
allProducts: [Product]
|
||||
allAppointments: [Appointment]
|
||||
oneAppointment(
|
||||
_id: ID!
|
||||
): Appointment
|
||||
allUsers: [User]
|
||||
users: [User!]!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user