NOR Queries with CaminteJS
<p>I want to do a query with CaminteJS, basically just want to get a <code>completed</code> job, which <code>status</code> is neither <code>running</code> nor <code>queued</code>. Please help, thank you very much!</p>

<pre class="lang-js prettyprint-override"><code>Result.findOne()
    .where('job_id', job_id)
    .where('status').ne('running')
    .where('status').ne('queued') // looks like this line is overriding the last line
    .sort('-number')
    .run({}, callback);
</code></pre>

<p>I also tried mongoose way but still not working.</p>

<pre class="lang-js prettyprint-override"><code>    .nor([{status: 'running'}, {status: 'queued'}]) // not a caminte api 
</code></pre>

<pre class="lang-js prettyprint-override"><code>    .where('status').nin(['running', 'queued']) // not working
</code></pre>

<pre class="lang-js prettyprint-override"><code>    .where('status').ne('running').ne('queued') // not working
</code></pre>