Hi Ismael,
to get the attribute names of a document/an object and process them all,
you can use the ATTRIBUTES function in AQL, e.g.
LET document = { a:1, b:2 }
FOR key IN ATTRIBUTES(document)
RETURN { key, value: document[key] }
That will provide all the names of attributes/keys in the object/document,
which you can then further process in a loop or by other means.
Best regads
Jan
Am Montag, 3. September 2018 22:04:14 UTC+2 schrieb Ismael Nobre:
>
> Hi, im newbie on this world and have a simples question, if anyone can
> help me i will be very happy.
>
> My is a complex data structure saved as document and this data is
> generated for other system. When this crawler capture the data they create
> an node with the day of capture.
>
> I need to know how can i create a "catch-all" on this node. Something
> like: object[.*]["mensal"]["data"]. I tried to use "*" but didn't work, i
> also tried use the index and didn't work. o.consumo[0] and o.consumo[*].
>
> This is my 1st contact with arangoDB and im very confused with this
> syntax, i came from relacional database universe.
>
> Well, i hope anyone can help me.
>
> Best,
>
> Ismael
>
>
>
--
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.