the new poster is here, I found this previous post, but it is in C #, I tried to execute this request directly in the java code of the JSP page, for some reason it does not accept information in {} of the find () query and just throws an error. ..
So how to do it in Java:
// retrieve ssn field for documents where last_name == 'Smith': db.users.find({last_name: 'Smith'}, {'ssn': 1});
Thanks!
PS: why the hell does C # have good .Exclude () and .Include () commands, but java not? screams
source share