I have this relationship between DB entities:
Entity1
- Name
...
Entity2
- Entity1FK
...
What I want to do is to query in RavenDB Studio using RQL all Entity2 which have Entity1 with according name.
This is a RQL query which is not valid but shows what I want to do:
from Entity2
where Entity1FK in (
from Entity1
where Name = "name"
select Id
)
I want to get all the IDs of Entity1 which have Name "name" and use these IDs in the same query. So, how to make the subquery in RQL? Was not able to find this in docs :(