debug context
This commit is contained in:
parent
1019fa7696
commit
4f616b21a1
1 changed files with 2 additions and 0 deletions
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue