Query results

Unlike AQL, The result of an FQL query is an not always array of values. The individual values can be returned, not wrapped by an array.

For example, when the RETURN statement is used as the last query statement, a values gets returned as it is:

    
        
RETURN 1

    
1
    
        
RETURN { foo: "bar" }

    
{ "foo": "bar" }

However, when returning data from an iteration, the result values will be always an array:

    
        
FOR u IN elements
    RETURN i.href

    
    
        
{ "foo": "bar" }

    

Result type

The result data type is in JSON format. All binary data gets encoded into base64 strings.