query for all data

This commit is contained in:
davidwells 2018-06-11 18:49:22 -07:00
parent fd5b183d00
commit 4c794b23f3
2 changed files with 11 additions and 4 deletions

View file

@ -7,7 +7,7 @@ const client = new faunadb.Client({
exports.handler = (event, context, callback) => {
const data = JSON.parse(event.body)
console.log("Function `todo-create` invoked")
console.log("Function `todo-create` invoked", data)
return client.query(q.Create(q.Ref("classes/todos"), {data}))
.then((response) => {
console.log("success", response)