Closed zammitjames closed 2 years ago
I've been trying to generate an auto id in a schema model by using the built in default function as below.
id: { type: 'uuid', default: {'$db_function': 'uuid()'} },
For some reason it's like it completely ignores the default attribute. It doesn't seem to be executed even if i return plain text or try generating a timestamp.
Any ideas?
Could you share how you store data for this attribute?
Closing due to inactivity
I've been trying to generate an auto id in a schema model by using the built in default function as below.
id: { type: 'uuid', default: {'$db_function': 'uuid()'} },
For some reason it's like it completely ignores the default attribute. It doesn't seem to be executed even if i return plain text or try generating a timestamp.
Any ideas?