Class: Parse::Constraint::InQueryConstraint
- Inherits:
-
Constraint
- Object
- Constraint
- Parse::Constraint::InQueryConstraint
- Defined in:
- lib/parse/query/constraints.rb
Overview
Equivalent to the $inQuery Parse query operation. Useful if you want to
retrieve objects where a field contains an object that matches another query.
q.where :field.matches => query
assume Post class has an image column.
q.where :post.matches => Post.where(:image.exists => true )
Instance Method Summary collapse
-
#in_query ⇒ InQueryConstraint
Alias for #matches.
-
#matches ⇒ InQueryConstraint
A registered method on a symbol to create the constraint.
Instance Method Details
#in_query ⇒ InQueryConstraint
Alias for #matches
1698 |
# File 'lib/parse/query/constraints.rb', line 1698 constraint_keyword :$inQuery |
#matches ⇒ InQueryConstraint
A registered method on a symbol to create the constraint. Maps to Parse operator "$inQuery".
|
|
# File 'lib/parse/query/constraints.rb', line 1689
|