2

I have this query but I'm not getting any result

@Query(value = " { '_id': { $in: ?0 }} ", fields = " { response : 1 } ")
public List<SimulatedCase> findByIdWithoutTrace(List<String> ids);

I found examples like this

How to query documents using "_id" field in Java mongodb driver?

But can't find how to do it in this way, convert every object in the array into a ObjectId().

sebasm
  • 156
  • 10

0 Answers0