title: How to select a UUID from a prepared statement in Postgres?
body: <p>I'm trying to select a user based on a UUID:</p>
  
  <pre><code>const client = await this.pg.connect()
  const { rowsAct } = await client.query(`SELECT * FROM users WHERE uid=$1`, [
    userUUID
  ])
  </code></pre>
  
  <p>I also tried without the variable:</p>
  
  <pre><code>const client = await this.pg.connect()
  const { rowsAct } = await client.query(`SELECT * FROM users WHERE uid=$1`, [
    '4fcf0ca3-4e26-40a9-bbe5-78ff8fdb6e0f'
  ])
  </code></pre>
  
  <p>I tried using ::uuid casting but maybe I did it wrong. The returned <code>rowsAct</code> is always undefined.</p>
  
  <p>I verified the <code>userUUID</code> variable was populated and was a valid uuid:
      console.log(typeof userUUID) // string</p>
  
  <p>What am I doing wrong? How can I properly select a row form it's UUID?</p>
  
  <p>Thanks!</p>