Using command Shell - Error with InsertOne method

I am trying InsertOne to create a document from the shell. I get error db.moviesScratch.insertone is not a function : @shell):1:1

Syntax error please

insertone is not same as InsertOne

1 Like

Hi @Richard_31964,

As @Ramachandra_37567 mentioned, the method name is incorrect. Please refer our documentation if you want to know more about this method.

Please feel free to get back to us if you have any other query.

Thanks,
Shubham Ranjan
Curriculum Services Engineer

Thanks for pointing me in the right direction. the correct syntax is actually insertOne

Closing this thread as the issue has been resolved.