API resource IDs in Express and NestJS
For route params, payloads, and externally visible records, UUID V7 is a practical Node.js choice when the application needs to own ID creation. Teams usually accept it here because of better chronological ordering in storage, even though it is chosen for sortability more than for legacy compatibility.