node-ottoman icon indicating copy to clipboard operation
node-ottoman copied to clipboard

Documentation : Auto and UUID

Open AV25242 opened this issue 3 years ago • 0 comments

Questions around "how to generate UUID for a field " pops up quite often. Its difficult to infer this information from the current documentation.

Add exclusive section in the documentation which is searchable and at the same time has example around it. as an example for a field _id to use UUID its as simple as attributing it as auto : 'uuid'

_id: { type: String, required: true, auto: ‘uuid’ }

AV25242 avatar Mar 07 '22 18:03 AV25242