Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. MongoCollection<Document> collection = database.getCollection("listingsAndReviews");
  2.        
  3.         Document document = collection.find(Filters.lt("reviews.date", new Date(2016, 3, 1))).projection(Projections.include("name", "reviews.reviewer_name", "reviews.date")).first();
  4.        
  5.         System.out.println(document.toJson());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement