Skip to content
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

Virtual createdAt not available on document.toJSON #41

Open
Koka5 opened this issue May 13, 2017 · 0 comments
Open

Virtual createdAt not available on document.toJSON #41

Koka5 opened this issue May 13, 2017 · 0 comments

Comments

@Koka5
Copy link

Koka5 commented May 13, 2017

In earlier version 0.1.1 i was not specifying any createdAt in my schema file.
mongoose-timestamp used to add and and setupvirtuals

Now mongoose-timestamp is adding virtuals only if i have explicitly defined the createdAt field.

codeofnode added a commit to codeofnode/mongoose-timestamp that referenced this issue May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant