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 as a sub-query #4267

Closed
DeividasJackus opened this issue Jun 1, 2015 · 2 comments
Closed

FIND REFERENCES as a sub-query #4267

DeividasJackus opened this issue Jun 1, 2015 · 2 comments
Assignees

Comments

@DeividasJackus
Copy link

Is there a particular reason FIND REFERENCES cannot be used as a sub-query?

SELECT FROM (FIND REFERENCES V)

Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #0: Encountered " "FROM "" at line 1, column 8.

@lvca
Copy link
Member

lvca commented Jun 12, 2015

Do rather:

find references ( select from V )

@lvca lvca closed this as completed Jun 12, 2015
@lvca lvca self-assigned this Jun 12, 2015
@lvca
Copy link
Member

lvca commented Jun 12, 2015

Try also:
select from ( select expand( referredBy ) from ( find references (select from V limit 1) ) ) where @Class = 'HasCategory'

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