Method: Contentstack::Query#include_branch

Defined in:
lib/contentstack/query.rb

#include_branch(flag = true) ⇒ Contentstack::Entry

Include the branch for publish content.

Example

@query = @stack.content_type('product').query
@query.include_branch

Returns:

[View source]

550
551
552
553
# File 'lib/contentstack/query.rb', line 550

def include_branch(flag=true)
  @query[:include_branch] = flag
  self
end