I am using panache to query MongoDb, when creating the query document the parameters are in a list.
Ordinarily I would query like this when searching for the field unit
PanacheQuery<BasicInfo> basicInfoPanacheQuery;
Document document = new Document();
document.add("unit", 1);
basicInfoPanacheQuery = BasicInfo.find(document).page(Page.of(page, PAGE_SIZE));
However am now getting unit as a list/array like below,
List<Integer> units = List.of(1,2);
How do I search for units even if they share the same key but values are a list or array.