Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
"db.oldname.renameCollection('newName')"
"db.oldname.renameCollection('newName')"
Hello jmartinez,
1- The $eval and $doEval functions are not deprecated as of Mongo 3.0 Java API () which we use behind the scenes. They are deprecated on the mongoshell and will be deprecated soon in the Java API.
2- If you're planning to execute arbitrary code on your mongodb instance (using eval) you should, from a security perspective, have the full privileges on the database.
3- 4- In the next version of the tMongoDBRow we're moving from eval to command (runCommand) (-). Note that renaming a collection using the command (runCommand) requires access to the admin database.
By the way, the call should succeed on non-secure MongoDB instance. What type of authentication you're using ?
Thanks,
The new changes should be available in Talend 6.1.1. I'll be working on this feature so I'll keep you update on the progress.
Best Regrads,