Unable to search documents in atlas by UUID

Hello,

What is the proper filter document to be used in mongodb atlas to filter documents in a collection based on a field of type UUID? I have been unable to find any documentation or examples on this.

2 Likes

Use $uuid instead of UUID().

{“id”:{"$uuid": “2a7c560c-bb1a-466a-84f8-94c98e273179”}}