Skip to content

Instantly share code, notes, and snippets.

@mhdelta
Created May 28, 2018 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhdelta/6eb3c44be98c9a7fe89be0da18a0b0a2 to your computer and use it in GitHub Desktop.
Save mhdelta/6eb3c44be98c9a7fe89be0da18a0b0a2 to your computer and use it in GitHub Desktop.
MongoCon database = new MongoCon();
// create collection
// database.createCollection("clientes");
// Document doc = new Document();
//
// doc.append("nombre", "Miguel");
// doc.append("apellido", "Henao");
// doc.append("DNI", "12345678");
// database.insertDocument(doc, "clientes");
// database.getAllDocuments("clientes");
// Document filter = new Document("nombre", "Miguel");
// database.getAllDocuments("clientes", filter);
// database.updateDocument("clientes", "Miguel", "nombre", "Miguel");
// database.getAllDocuments("ciudades");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment