LearningNodeJS
LearningNodeJS copied to clipboard
Update function used to create collections
The collections() function was tripping an error each time I called it with the purpose of creating a collection. Replacing it with the createCollection() function solves the issue.
This answers https://github.com/marcwan/LearningNodeJS/issues/28
Hi @javajared !!
So, I looked through this today, and the code works fine as is — it does, however, use the mongodb: "2.x" module instead of the newer 3.x module.
How exactly are you seeing this problem?