MongoDB移动Wekan看板内容到另一个看板

db.getCollection('cards').update(
    // query 
    {
    "listId" : "fBzXxdzCuqDcKn54c",
    "boardId" : "KqDv6vpBFJjnzY7iD",
    "swimlaneId" : "uRfnzqYu5Bf25PJPE",
    },
    
    // update 
    {$set:{
    "listId" : "hiDhQ43os32ddNb4p",
    "boardId" : "dXAhigdiB5xNtupNi",
    "swimlaneId" : "GAPYFJXEFsFdSvHq4",        
    }},
    
    // options 
    {
        "multi" : true,  // update only one document 
        "upsert" : false  // insert a new document, if no existing document match the query 
    }
);

你可能感兴趣的:(MongoDB移动Wekan看板内容到另一个看板)