Apparently the producer doesn't take into account inheritance when constructing the queries, so we have to explicitely define the necessary types
Apparently the producer doesn't take into account inheritance when constructing the queries, so we have to explicitely define the necessary types