Returning collection or Document at same query #1239

Closed
biswajitdas opened this Issue Dec 31, 2012 · 1 comment

Projects

None yet

2 participants

@biswajitdas

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?

@lvca
Member
lvca commented Jan 30, 2014

Now .size() works against single and multiple items.

@lvca lvca closed this Jan 30, 2014
@lvca lvca was assigned Jan 30, 2014
@lvca lvca modified the milestone: 1.7rc1, 1.7 Feb 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment