lib/support.rb
  Output the compiled query
  Parameter: destination (rest, batch )
  If the query is submitted via the REST-Interface (as get-command), the limit parameter is extracted.
Output the compiled query
Parameter: destination (rest, batch )
If the query is submitted via the REST-Interface (as get-command), the limit parameter is extracted.
Output the compiled query Parameter : destination ( rest batch ) If the query is submitted via the REST - Interface ( as get - command ) the limit parameter is extracted .
def compose(destination: :batch)
      if @kind == :match
	unless @match_statements.empty?
	match_query =  @kind.to_s.upcase + " "+ @match_statements[0].compose_simple 
	match_query << @match_statements[1..-1].map( &:compose ).join
	match_query << " RETURN "<< (@match_statements.map( &:as ).compact | @aliases).join(', ')
	end
      elsif destination == :rest
        [@kind, projection_s, from, let_s, where_s, subquery, misc, order_s, group_by, unwind, skip].compact.join(' ')
      else
        [@kind, projection_s, from, let_s, where_s, subquery, misc, order_s, group_by, limit, unwind, skip].compact.join(' ')
      end
    end
def compose ( destination : :batch ) if @kind == :match unless @match_statements . empty? match_query = @kind . to_s . upcase + " " + @match_statements [ 0 ] . compose_simple match_query << @match_statements [ 1 .. - 1 ] . map ( & :compose ) . join match_query << " RETURN " << ( @match_statements . map ( & :as ) . compact | @aliases ) . join ( ', ' ) end elsif destination == :rest [ @kind , projection_s , from , let_s , where_s , subquery , misc , order_s , group_by , unwind , skip ] . compact . join ( ' ' ) else [ @kind , projection_s , from , let_s , where_s , subquery , misc , order_s , group_by , limit , unwind , skip ] . compact . join ( ' ' ) end end
Output the compiled query
Parameter: destination (rest, batch )
If the query is submitted via the REST-Interface (as get-command), the limit parameter is extracted.
Output the compiled query Parameter : destination ( rest batch ) If the query is submitted via the REST - Interface ( as get - command ) the limit parameter is extracted .
destination
<not_specific>