Lets say i have the following types with n to n links:
type Cart {
id: ID!
items: [Item] @hasInverse(field: inCarts)
}
type Item {
id: ID!
inCarts: [Cart]
}
Now i have a defined list of ids of items.
Is it possible to find all carts which contain this exact list of items (or more) with a DQL query?
Sort of example query:
var(func: type(Item)) @filter(some filter) {
items as uid <-- the list of items
}
q(func: type(Cart)) @filter(filter to only fetch Carts with given list of items or more) {
uid
}
Cheers!