Appointment with Mongo
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
async function feed(parent, args, context, info) {
|
||||
console.log(context);
|
||||
|
||||
const where = args.filter
|
||||
? {
|
||||
OR: [
|
||||
|
||||
Reference in New Issue
Block a user