You're welcome. I assume you changed it like this?

RETURN {
    total: LENGTH(kinds),
    users: MERGE(
        FOR k IN kinds
            COLLECT kind = k.userKind WITH COUNT INTO kc
            RETURN { [ CONCAT("kind", kind) ]: kc }
    ),
    stats: MERGE(
        FOR k IN kinds
            COLLECT kind = k.itemKind WITH COUNT INTO kc
            RETURN { [ CONCAT("stat", kind) ]: kc }
    )
}


-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to