As discussed https://groups.google.com/forum/#!topic/orient-database/6M7V9axpIno
SELECT out[name="LINK"].in AS EDGE FROM CLASS1
In this case if it has only one edge then it returns the Document, but if multiple edges, it returns the array of ducuments.
SELECT out[name="LINK"] AS EDGE FROM CLASS1
But in this situation it is consistent.
Shouldn't this be same for both?
Now .size() works against single and multiple items.