I have an object that contains multiple objects, this is a simplification of the project I am try to address. The parent object has a predicate of objects stored within it. I need a list of the parent objects which either only contains objects with the desired attribute values or does not contain objects with the undesired values.
In the below example I am looking for the boxes which do not have any red devices, or the boxes which only have green devices.
The schema is
color: string .
devices: [uid] .
in_box: uid .
type device {
color
in_box
}
type box {
devices
Question: If q is the set of boxes which has ‘red’ devices. and the query is against q with a filter of objects that are not in q, shouldn’t this result in a null set?