-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.include misbehave with @rid #3630
Comments
I have the same issue as well. is there any better way to include |
Does anyone know a workaround for this? |
It is very annoying. One could use fetchplan instead, but it is not an option for us. A workaround is very welcome. |
I got the same issue. My workaround was to create two different columns in SELECT clause: the first one includes the properties I want, and the second includes only the RIDs. In client side (I use C#), I combine properties and RIDs from both columns in the same object. |
any update to solve this issue? |
there seems to be a related issue with 'exclude' method: seems you need to exclude the @Rid so that it works. |
Any update on this @lvca or @luigidellaquila? There has been no official statement from you guys, and the milestone just gets changed every now and then. |
Hi guys, I'm afraid we cannot do much for this in v 2.2.x. Each element in the list is a document, if it has an invalid RID it's considered as an embedded document and it's serialized as it is; if it has a regular RID it's considered a linked document, so only the RID is serialized (except if you have an explicit FETCHPLAN that changes this behavior). So the solution for now is only to have a proper fetchplan in the query. Good news is that in V 3.0 we completely changed this logic, we deprecated fetchplans and added nested projections (see http://orientdb.com/docs/3.0.x/sql/SQL-Projections.html#nested-projections), this will hopefully solve the problem once and forever Thanks Luigi |
Adding toJSON() method should work as a work around for now. Check the sample below |
OrientDB v 3.0 solves problems related to FETCHPLAN and include() with nested projections Closing, thanks Luigi |
Reopening #3587, this time no typos.
Query 1
Result:
Query 2
Result:
Notice how
puntuaciones
became an array with only RID, and the other columns where omitted.The text was updated successfully, but these errors were encountered: