Skip to content
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

FIND REFERENCES: subquery + class filter #4268

Closed
DeividasJackus opened this issue Jun 1, 2015 · 1 comment
Closed

FIND REFERENCES: subquery + class filter #4268

DeividasJackus opened this issue Jun 1, 2015 · 1 comment
Assignees

Comments

@DeividasJackus
Copy link

It would be great if FIND REFERENCES would allow to specify both a sub-query AND a class filter:

FIND REFERENCES (SELECT FROM V) V

Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #30: Class list must be contained in []

I am not sure if there's even a workaround for this right now (without issuing several queries) as FIND REFERENCES results cannot be used in another query (#4267)

@lvca
Copy link
Member

lvca commented Jun 12, 2015

This is an example to use it with select:

select from ( select expand( referredBy ) from ( find references (select from V limit 1) ) ) where @class = 'HasCategory'

@lvca lvca closed this as completed Jun 12, 2015
@lvca lvca self-assigned this Jun 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants