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

modelfactory doesn't support Array constructor as type #6

Closed
ashaffer opened this issue Apr 26, 2014 · 3 comments
Closed

modelfactory doesn't support Array constructor as type #6

ashaffer opened this issue Apr 26, 2014 · 3 comments

Comments

@ashaffer
Copy link

modelfactory.Schema({
  items: Array
})

Breaks in modelfactory but is supported by mongoose. Seems to be because Array is not considered an array by Array.isArray.

@ashaffer
Copy link
Author

Doesn't seem to support Schema.Types.Mixed either.

@pgherveou
Copy link
Owner

Thks for the feedback will have a look
I am not using Mixed but it should not be too hard to implement

@pgherveou
Copy link
Owner

just pushed a new version let me know if that fixed the problem for you

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

2 participants