Guest User

Untitled

a guest
Nov 22nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. db.indexInverse.find({_id:ObjectId("5a153409b9c52933c8aab068")}).pretty()
  2.  
  3. Document vraiDoc = collectionIndexInverse.find(Filters.eq("_id", new ObjectId(""" + idDoc + """))).first();
  4.  
  5. Bson query = (Bson) new BsonString("{ _id:ObjectId("" + idDoc + "")}");
  6. Document vraiDoc = collectionIndexInverse.find(query).first();
  7.  
  8. Bson query = (Bson) new BsonString("{ _id:ObjectId(idDoc)}");
  9. Document vraiDoc = collectionIndexInverse.find(query).first();
Add Comment
Please, Sign In to add comment