-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
New Feature save Embedded Docs as hash/object ?? #5898
Comments
I don't understand your suggestion, can you clarify? |
As per my understanding after going through mongoose-embedded-docs
|
sorry I still don't understand what you're asking for? DO you want to store an array or a hash/object ? |
I want to save embedded docs as a hash/object |
Mongoose currently doesn't have support for schema types with arbitrary keys (maps, hashes, etc.), follow #681 for updates. Planning on adding that in Q1 2018. |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Docs States that http://mongoosejs.com/docs/2.7.x/docs/embedded-documents.html You can embed a docs as an array . If one can embed a docs as
json
the retrieval will be faster as one doesn't has to iterate on the entire array , one can fetch data from the key .If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Please mention your node.js, mongoose and MongoDB version.
The text was updated successfully, but these errors were encountered: