text: import faunadb from 'faunadb'
  import getId from './utils/getId'
  
  const q = faunadb.query
  const client = new faunadb.Client({
    secret: process.env.FAUNADB_SERVER_SECRET
  })
  
  exports.handler = (article, context, callback) => {
    const id = getId(article.path)
    // console.log(`Function 'article-delete' invoked. delete id: ${id}`)
    return client.query(q.Delete(q.Ref(`classes/articles/${id}`)))
      .then((response) => {
        // console.log('success', response)
        return callback(null, {
          statusCode: 200,
          body: JSON.stringify(response)
        })
      }).catch((error) => {
        // console.log('error', error)
        return callback(null, {
          statusCode: 400,
          body: JSON.stringify(error)
        })
      })
  }
  