Method: Contentstack::Query#tags

Defined in:
lib/contentstack/query.rb

#tags(tags_array) ⇒ Contentstack::Query

Include tags with which to search entries.

Example

@query = @stack.content_type('product').query
@query.tags(["tag1", "tag2"])

Parameters:

  • tags_array (Array)

    Array of tags using which search must be performed

Returns:



601
602
603
604
# File 'lib/contentstack/query.rb', line 601

def tags(tags_array)
  @query[:tags] = tags_array
  self
end