When I am converting MongoDB UUID to string in MongoDB projection query using $toString, its giving the following error: "Unsupported conversion from binData to string in $convert with no onError value"
Can anyone suggest a solution, please?
db.collection.aggregate([
{
$project: {
_id: {
$toString: "$_id"
}
}
}
])