Class: Parse::Constraint::InQueryConstraint
- Inherits:
- Parse::Constraint
- Object
- Parse::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 Attribute Summary
Attributes inherited from Parse::Constraint
#operand, #operation, #operator, #value
Instance Method Summary collapse
- #in_query ⇒ InQueryConstraint
Alias for #matches.
- #matches ⇒ InQueryConstraint
A registered method on a symbol to create the constraint.
Methods inherited from Parse::Constraint
#as_json, #build, contraint_keyword, create, #formatted_value, formatted_value, #initialize, #key, #precedence, register, #to_s
Constructor Details
This class inherits a constructor from Parse::Constraint
Instance Method Details
#in_query ⇒ InQueryConstraint
Alias for #matches
558 | # File 'lib/parse/query/constraints.rb', line 558 contraint_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 549
|