db.createCollection is not a function

db.createColletion(“aluno”) uncaught exception: TypeError: db.createColletion is not a function : @(shell):1:1

Mongodb 5.0 in Linux Ubutun 20

@Fabio_Bomfim_Nunes Hi there,

It is misspelt, should be db.createCollection.

But in any case press db.create and hit Tab to get autocompletion from NodeJS. :smile:


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.