Skip to content

Instantly share code, notes, and snippets.

View feliperamaral's full-sized avatar

Felipe Amaral feliperamaral

View GitHub Profile
const MongoClient = require('mongodb').MongoClient;
class MongoClient2 {
url = null;
client = null
database = {}
collection = {}
constructor(url = 'mongodb://localhost:27017') {