title: error: syntax error at or near "$"
body: <p>I am currently checking out Vue and am doing a little refactor on a personal project.</p>
  
  <p>I am running into some problems with my API.</p>
  
  <p>The two technologies involved are <a href="https://www.npmjs.com/package/axios" rel="nofollow">axios</a> which I am using to send requests to my API, which talks to a postgres database using <a href="https://github.com/vitaly-t/pg-promise" rel="nofollow">pg-promise</a>.</p>
  
  <p>The api call...</p>
  
  <pre><code>function add (entry, cb) {
    const length = entry.content.length
    entry.title = `${entry.content.substring(0, 32)}`
    axios.post('/api/notes', entry).then(cb)
  }
  </code></pre>
  
  <p>here, entry is and <strong>object { title, content, prio, status, context }</strong></p>
  
  <p>the pg-promise endpoint</p>
  
  <pre><code>export const createNote = (req, res, next) =&gt; {
    db.none('insert into entries(title, content, prio, status, context)' +
        'values( ${title}, ${content}, ${prio}, ${status}, ${context})',
      req.body)
    .then(() =&gt; {
      res.status(200)
      .json({
        status: 'success',
        message: 'Inserted one entry'
      })
    }).catch(err =&gt; next(err))
  }
  </code></pre>
  
  <p>here, req.body is <strong>undefined</strong></p>
  
  <ol>
  <li>I don't know why I am getting undefined.</li>
  <li>Does this <a href="https://gist.github.com/awitherow/1e0385170376780a3e9a482a2f041d14" rel="nofollow">error log</a> help?</li>
  </ol>
  
  <p>I was reading through the documentation at axios and could not seem to find anything wrong with my api call, figured I would post something here.</p>
  
  <p>Thanks!</p>