Closed SeanPhilippi closed 5 years ago
tested in Robo 3T, works
db.getCollection('courses').find({}).forEach(course => { if (course.textbook !== null) { db.getCollection('courses').update( { "_id": course._id }, { $set: { "textbooks": [course.textbook] }} ) } })
tested in Robo 3T, works