I have to define a custom field of type Assets Object, that will fetch all objects in a schema that have no children.
The schema defined object type Alpha that have children objects of type Beta and Gamma.
Sometimes the Gamma child was detached from the relationship.
I want the custom field of type Asset Objects to fetch all the Alpha type objects that are missing the Gamma child. I need to write thet AQL for that. Is it possible?
I found the solution myself it is using
object NOT having inR(objectType = "[OBJECT TYPE]")
Hi @Petru Simion _Simitech Ltd__
Refer to the Employees (Alpha), Non-contractor (Beta), and Contractor (Gamma) attached schema and example.
As you can see, you can filter those Alpha objects having no Gamma child objects linked up and present them in a custom asset field using AQL within the field config.
I hope this example helps you!
Just in case you're wondering what the link configuration is:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.