Add UUID generation to Atlas Functions
Atlas Functions have a utils.crypto
library that offers some basic cryptography functions. One of those should be the modern crypto.randomUUID()
that is now standard in ECMAScript. Currently, Atlas Functions cannot generate a UUID without resorting to third-party dependencies. I prefer using full UUIDs over Mongo's proprietary ObjectID.
2
votes
![](https://secure.gravatar.com/avatar/7a4e2b4bc04f78750dc5c239faf313f6?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)