Method: Contentstack::Query#where
- Defined in:
- lib/contentstack/query.rb
#where(query_hash) ⇒ Contentstack::Query
Add a constraint to fetch all entries that contains given value against specified key. Example:
@query = @stack.content_type('blog').query
@query.where({:author => "Jane Doe"})
71 72 73 |
# File 'lib/contentstack/query.rb', line 71 def where(query_hash) add_query_hash(query_hash) end |