In my first queries, I've encountered the same problem. That's why I use
now the '[0]' code.
But I was just reading the OrientDB *Functions *documentation.
And I saw that :
"In case you need to use a function as inline when you've only one
parameter, then add a second one like "null":
SELECT first( out('friends').name, null ) as firstFriend FROM Profiles
In this case first() function doesn't aggregate everything in only one
record, but returns one record per Profile where the firstFriend is the
first item of the collection received as parameter."
Maybe you could try it ?
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" 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.