Skip to content

Instantly share code, notes, and snippets.

@trishagee
Created May 9, 2014 08:52
Show Gist options
  • Save trishagee/440cdf337eadd99c9e04 to your computer and use it in GitHub Desktop.
Save trishagee/440cdf337eadd99c9e04 to your computer and use it in GitHub Desktop.
DBCursor results = collection.find(new BasicDBObject("name", "SomeName"),
new BasicDBObject("name", 1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment