It’s not about my problem. According to my schema, the product interface is associated with the manufacturer type.
In the query below, the manufacturer comes from the interface, so aggregateDevice can’t be used for the manufacturer total count. Additionally, productsAggregate returns all product data without applying the (filter: {lockStatus: {in: [LOCKED]}}) filter, which is only available in the device type.