-
Notifications
You must be signed in to change notification settings - Fork 25
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
updated_at timestamps #98
Comments
@mikeroth7 You could do a document |
and the |
yes, as long as you are re-assigning the field value, depending on how complex the object is. see here for more detailed explanation. |
But do document level transforms get called when doing something like |
is your updated_at a top level property? EDIT: my mistake i was thinking of |
Hi @mikeroth7 - sorry for the late reply, unfortunately the My best advice would be to either avoid using I'm sorry there isn't a better solution yet, but I also can't see much room for improving it without creating a snow-flake update hook. If you can expand on your specific use case and why you're required to use Regards, |
How would you suggest setting updated_at timestamps automatically? I saw the
onSaving
hook but according to the docs that only gets called when theinstance.save()
function is used. I also saw the Iridium-timestamps repo but wasn't quite sure how to apply that to how we have Iridium setup with Typescript and decorators to create the schemas.The text was updated successfully, but these errors were encountered: