debug context

This commit is contained in:
davidwells 2018-06-11 16:46:18 -07:00
parent 1019fa7696
commit 4f616b21a1

View file

@ -8,6 +8,8 @@ const client = new faunadb.Client({
}); });
exports.handler = (event, context, callback) => { exports.handler = (event, context, callback) => {
console.log('event', event)
console.log('context', context)
console.log(`readOne todo ${event.pathParameters.id}`); console.log(`readOne todo ${event.pathParameters.id}`);
return client.query(q.Get(q.Ref("classes/todos/"+event.pathParameters.id))) return client.query(q.Get(q.Ref("classes/todos/"+event.pathParameters.id)))
.then((response) => { .then((response) => {