Appointment with Mongo

This commit is contained in:
Riccardo
2021-01-02 18:37:03 +01:00
parent 30407cac0a
commit c752e3ec80
12 changed files with 330 additions and 112 deletions

View File

@@ -17,7 +17,7 @@ function createAppointment(parent, args, context, info) {
}
async function signup(parent, args, context, info) {
console.log(context);
console.log(context.mongo);
const password = await bcrypt.hash(args.password, 10);
const user = await context.mongo.user.create({
data: { ...args, password }

View File

@@ -1,5 +1,5 @@
async function feed(parent, args, context, info) {
console.log(context);
const where = args.filter
? {
OR: [