Method: Contentstack::Query#fetch
- Defined in:
- lib/contentstack/query.rb
permalink #fetch ⇒ Contentstack::EntryCollection Also known as: find
Execute query
Example
@query = @stack.content_type('product').query
@query.(["tag1", "tag2"])
.fetch
616 617 618 619 |
# File 'lib/contentstack/query.rb', line 616 def fetch entries = API.fetch_entries(@content_type, @query) EntryCollection.new(entries, @content_type) end |