0

I try create new CSUUID column as _id, usually I can do in Studio 3T it with javascript in $addFields aggregation:

function: 
{
    "_id": {
        $function: {
            body: function() {
                return UUID();
            },
            args: [],
            lang: "js"
        }
    }
}

But this code generates normal GUID (UUID) not .NET UUID. Since our collection uses .NET UUID I need to generate in my aggregation script .NET UUID, but it generates UUID:

enter image description here

Do you know a solution how to solve it?

Sergey
  • 7,933
  • 16
  • 49
  • 77

0 Answers0