Please activate JavaScript!
Please install Adobe Flash Player, click here for download

AvocadoDB Query Language - Jan Steemann

© 2012 triAGENS GmbH | 2012-04-04 48 Aggregate functions  Solution 1: use „access to all list members“ shortcut: FOR u IN [ { "user": { "type": 1, "rating": 1 } }, { "user": { "type": 1, "rating": 4 } }, { "user": { "type": 1, "rating": 3 } } ] GROUP { "type": u.type, "g": $ } RETURN { "type": type, "maxRating": MAX(g[*].u.user.rating) } g[*] will iterate over all elements in g and return each elements u.user.rating attribute