How can i generate UUID in nodejs

i want to generate unique id in my each document in NodeJS

Welcome!

Not sure if it's what you want but if you send a document to Elasticsearch without an id, the id will be automatically generated and sent back to you.

1 Like

thanks