title: Loopback Find then update attribute or delete by id
body: <p>Been trying to find samples usage for some of the static methods for a persistedModel in Loopback.</p>
  
  <p><a href="https://apidocs.strongloop.com/loopback/#persistedmodel-prototype-updateattribute" rel="noreferrer">https://apidocs.strongloop.com/loopback/#persistedmodel-prototype-updateattribute</a></p>
  
  <p>it just says:</p>
  
  <pre><code>persistedModel.updateAttributes(data, callback)
  </code></pre>
  
  <p>But how you I choose the which record I want to update? this is not working for me.</p>
  
  <pre><code>var order = Order.setId('whateverrecordId');
  order.updateAttributes({name:'new name'},callback)
  </code></pre>
  
  <p>Loving loopback.. but their doc, sucks.. :(</p>