Created
May 28, 2018 14:53
-
-
Save mhdelta/6eb3c44be98c9a7fe89be0da18a0b0a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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