0

The title is pretty straight forward. I have an attribute which looks like this:

    isSet: {
    type: boolean,
    defaultsTo: false
    }

So my goal is to have the value set to false everytime a user is created. But when I do create a user this value is null/undefined The only workaround I found is to set the values in the beforeCreate method

dkx22
  • 1,103
  • 1
  • 13
  • 25

1 Answers1

1

Type should be string. This should work:

isSet: {
    type: 'boolean',
    defaultsTo: false
}
Boris Zagoruiko
  • 12,705
  • 15
  • 47
  • 79