Progress
This commit is contained in:
@@ -17,7 +17,6 @@ function createAppointment(parent, args, context, info) {
|
||||
}
|
||||
|
||||
async function signup(parent, args, context, info) {
|
||||
console.log(context.mongo);
|
||||
const password = await bcrypt.hash(args.password, 10);
|
||||
const user = await context.mongo.user.create({
|
||||
data: { ...args, password }
|
||||
|
||||
@@ -8,7 +8,7 @@ async function feed(parent, args, context, info) {
|
||||
]
|
||||
}
|
||||
: {};
|
||||
console.log(context.mongo);
|
||||
|
||||
const appointments = await context.mongo.appointment.findMany({
|
||||
where,
|
||||
skip: args.skip,
|
||||
|
||||
Reference in New Issue
Block a user