Open vinerz opened 9 years ago
Hello!
I'd wish to have a way to pass a function to default such as Date.now, so when the key is not set, Seraph fires it and set the key's value to its return value.
Date.now
Thanks again, Vinicius
Yes, if you look here, you'll see that you can set a default value within your schema.
Hello!
I'd wish to have a way to pass a function to default such as
Date.now
, so when the key is not set, Seraph fires it and set the key's value to its return value.Thanks again, Vinicius