Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Sep 22, 2012
1 parent eb37537 commit 7b3f56a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions source/en/origin/docs/selection.haml
Expand Up @@ -478,10 +478,20 @@
in front of the selection you want to invert. This will add a <code>$not</code>
clause to the query.

.well
%table
%tr
%td.achtung= image_tag "/images/achtung.png"
%td.note
%p
Note that <code>$not</code> clauses can only be applied to other operators.
See the official
<a href="http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-Metaoperator%3A{{%24not}}">$not documentation</a> for more information.

:coderay
#!ruby
queryable.not.where(name: "Dave")
queryable.selector #=> { "$not" => { "name" => "Dave" }}
queryable.not.gt(age: 50)
queryable.selector #=> { "age" => { "$not" => { "$gt" => 50 }}}


%section#symbol
Expand Down

0 comments on commit 7b3f56a

Please sign in to comment.