Class: Parse::Constraint::NotInQueryConstraint

Inherits:
Constraint
  • Object
show all
Defined in:
lib/parse/query/constraints.rb

Overview

Equivalent to the $notInQuery Parse query operation. Useful if you want to retrieve objects where a field contains an object that does not match another query. This is the inverse of the InQueryConstraint.

q.where :field.excludes => query

q.where :post.excludes => Post.where(:image.exists => true

Instance Method Summary collapse

Instance Method Details

#excludesNotInQueryConstraint

A registered method on a symbol to create the constraint. Maps to Parse operator "$notInQuery".

Examples:

q.where :field.excludes => query

Returns:



# File 'lib/parse/query/constraints.rb', line 1712

#not_in_queryNotInQueryConstraint

Alias for #excludes



1721
# File 'lib/parse/query/constraints.rb', line 1721

constraint_keyword :$notInQuery