Hello all,
I am trying to retrieve a list of documents from CB through my repository class. The tricky thing here is im trying to pass in a List of Strings which contain id’s to be retrieved as the following:
@Query("#{#n1ql.selectEntity} WHERE meta().id IN $1 END")
List < myDocuments > findAllDocus(List < String > ids);
but im getting the following error: Unsupported type for JsonArray: class java.util.Arrays$ArrayListjava.lang.IllegalArgumentException: Unsupported type for JsonArray: class java.util.Arrays$ArrayList
My understanding is that I am passing a array list into the query and the “IN” keyword expects a JsonArray, now how do I make that work?