Skip to content

Default Field Attribute Doesn't Work #20

@zammitjames

Description

@zammitjames

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions