Jump to navigation Jump to search
MongoDB 내용 정리.
db.collection is not a function
In mongodb version >= 3.0, that database variable is actually the parent object of the object it trying to access with database.collection('whatever').
const myAwesomeDB = database.db('myDatabaseNameAsAString') myAwesomeDB.collection('theCollectionIwantToAccess')