Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MongoCollection<Document> collection = database.getCollection("listingsAndReviews");
- Document document = collection.find(Filters.lt("reviews.date", new Date(2016, 3, 1))).projection(Projections.include("name", "reviews.reviewer_name", "reviews.date")).first();
- System.out.println(document.toJson());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement