MCQs > IT & Programming > MongoDB > What is the correct aggregation pipeline to prefix all the values of the 'name' column in the 'test' collection?

MongoDB MCQs

What is the correct aggregation pipeline to prefix all the values of the 'name' column in the 'test' collection?

Answer

Correct Answer: db.test.aggregate([{ $project: { name: { $concat: ['prefix', '$name'] } } }]);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it