[SERVER-22978] Warning copying documents with copyTo() Created: 06/Mar/16  Updated: 06/Mar/16  Resolved: 06/Mar/16

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.2.3
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Daniel Martinez Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

db.collection.copyTo('other-db')
WARNING: db.eval is deprecated



 Comments   
Comment by Daniel Martinez [ 06/Mar/16 ]

Thank you.

Anyway I already found a way to copy my collection between dbs:
https://gist.github.com/dmartz86/68b5675c8ef6cc5bfc58

Comment by Ramon Fernandez Marina [ 06/Mar/16 ]

dmartz86, the copyTo() command is deprecated as of version 3.0. See also SERVER-17453.

Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Generated at Thu Feb 08 04:01:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.