-
Notifications
You must be signed in to change notification settings - Fork 120
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
schema.timestamp flexibility #86
Comments
With this commit you can change the schema property from
or something like:
|
Does it also work for 'updatedAt' ? |
@osi-bhushankumar: Yes. |
@Incubatio please, don't close this issue. It is not merged yet. Pull Request #99 |
@ryanfitz Any idea when we can have a similar feature officially supported? |
This project is not maintained. The last commits are from Jan 13, 2016. You can checkout the projects Dynogels (fork of Vogels) or Dynamoose. |
Would be nice to be able to be able to customize createdAt and updatedAt format simply.
The point being to allow user to choose their format according to their need knowing that numeric has faster comparison and better compression and String is usually more readable (if using decent formatting like ISOString).
current definition is:
timestamp: true
we could keep the true with it default toISOString() behavior, and add possibility to define a function:
Here is a list of example:
The text was updated successfully, but these errors were encountered: