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

2D array in mongoose schema #96

Open
kevinresol opened this issue Jan 8, 2016 · 2 comments
Open

2D array in mongoose schema #96

kevinresol opened this issue Jan 8, 2016 · 2 comments
Labels

Comments

@kevinresol
Copy link

Currently mongoose (4.2.2) does not support multi-dimensional array in schema. So in the model schema macro we should convert them to Mixed (or [Mixed]?).

@clemos
Copy link
Owner

clemos commented Jan 8, 2016

I think it should work, actually.
Do you have a reproductible sample ?

@kevinresol
Copy link
Author

I don't have the full code on hand right now. However, the schema has a field locales:Array<Array<Locale>> and typedef Locale = {language:String, value:String}

And it caused a caster error as mentioned here

@clemos clemos added the bug label Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants