

Here are the things I want to log: Full Query.

I know ArangoDB maintains the logs in GUI but I just want the main DB operation logs which my code performs and attach them with any custom logger or simply with console.log.
Arangodb nested query serial#
Brainhub is one of the fastest growing technology companies in Europe with experienced serial entrepreneurs, well-funded startups and Fortune 500 clients. I want to get the logs of each AQL query or operation running with the arangojs SDK for ArangoDB. Brainhub is a JavaScript software company that builds scalable web, desktop and mobile applications. I've not found a way to eliminate the array nesting from AQL and am forced to do it in my frontend. Brainhub: Nested document models with ArangoDB and AQL. This array nesting caused considerable grief until I spotted it - I'm making the effort to generate JSON from my foxx service that can be directly merged into my Keylines chart. It's very easy to convert result lists into lookup maps (i.e.

This returns the first element of the intended array (correctly) but also notice that the superfluous nesting is gone. The reason all returns an array is simply that in ArangoDB simple queries always return an array (or rather an Arra圜ursor which is converted to an array by Foxx.Repository). Changing the last line to RETURN FLATTEN( mydoc ) or even RETURN FLATTEN( mydoc, 2) accomplishes nothing.Ĭhanging the last line to RETURN mydoc generates Still, the can be used if it has access to a multi-dimensional nested result. Which is an unrequested and seemingly unnecessarily ]. But simply appending to the query won’t help, because u.friends is not a nested (multi-dimensional) array, but a simple (one-dimensional) array. web interface with this browser: Safari 11.0.2 running on this OS: OSX.
