Started with Mongo
This commit is contained in:
9
server/src/resolvers/User.js
Normal file
9
server/src/resolvers/User.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function appointments(parent, args, context) {
|
||||
return context.mongo.user
|
||||
.findUnique({ where: { id: parent.id } })
|
||||
.appointments();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
appointments
|
||||
};
|
||||
Reference in New Issue
Block a user