Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Field Attribute Doesn't Work #20

Open
zammitjames opened this issue Mar 11, 2021 · 1 comment
Open

Default Field Attribute Doesn't Work #20

zammitjames opened this issue Mar 11, 2021 · 1 comment

Comments

@zammitjames
Copy link

zammitjames commented Mar 11, 2021

Hi,

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?

@dekelev
Copy link
Member

dekelev commented Mar 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants