thanks Jeffrey for quick response. I made two minor change following your suggestion. It works perfect after that. thanks
- FindIterable instead of AggregateIterable. Compass generated FindIterable (possible bug?). I noticed the compilation error, and already corrected the issue before submitting here.
- “new Document()” is generated by Compass too. It is the root cause of my issue. but it is part of my fault. I didn’t notice there was a empty query window. After I deleted the empty window, “new Document()” is not generated - see screenshot.