LearningNodeJS icon indicating copy to clipboard operation
LearningNodeJS copied to clipboard

Update function used to create collections

Open DundieWinner opened this issue 8 years ago • 2 comments

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.

DundieWinner avatar Mar 27 '17 00:03 DundieWinner

This answers https://github.com/marcwan/LearningNodeJS/issues/28

DundieWinner avatar Mar 27 '17 00:03 DundieWinner

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?

marcwan avatar Apr 21 '17 12:04 marcwan