What happens to the container or indexes or during query for a field that has @reversedirectrelation.
Kindly point to the documentation that explains what actually happens internally when a field has @reversedirectrelation.
What happens to the container or indexes or during query for a field that has @reversedirectrelation.
Kindly point to the documentation that explains what actually happens internally when a field has @reversedirectrelation.
Best answer by Uzair Wali
Hi
ViewA {
propA: String # maps to ContainerA/propA
propB: ViewB # DirectRelation, maps to ContainerA/propB
propC: [ViewB] # Connection definition for edges, no container property underneath
}
ViewB {
propD: String # maps to ContainerB/propD
propE: [ViewA] @reverseDirectRelation(throughProperty='propB') # Connection definition for a reverse direct relation. Basically defines a way to automatically query ViewA nodes whose 'propB' property point towards ViewB nodes.
}
Since these are not physical properties (on Containers), indexes do not apply here. Instead, to gain performance, indexing should be applied to the property that IS the direct relation itself i.e. propB above.
Hope that clarifies it somewhat.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.