rd with id: <span class="hljs-subst">#{id}</span>"</span>)

      _this.promise record</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Return a single record by <code>params</code></p>
<pre><code class="lang-coffeescript">User.findBy(<span class="hljs-attribute">name</span>: <span class="hljs-string">'John'</span>, <span class="hljs-attribute">city</span>: <span class="hljs-string">'New York'</span>).<span class="hljs-keyword">then</span> (user) -&gt;
  alert <span class