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

doc.model is not a function #11

Open
twoheaded opened this issue Jul 11, 2017 · 2 comments
Open

doc.model is not a function #11

twoheaded opened this issue Jul 11, 2017 · 2 comments

Comments

@twoheaded
Copy link

I get the following error:

TypeError: doc.model is not a function
    at makeUniqueCounterSlug (node_modules\mongoose-slug-generator\lib\slug-generator.js:142:9)
    at node_modules\mongoose-slug-generator\lib\slug-generator.js:91:21
    at node_modules\mongoose-slug-generator\node_modules\async\lib\async.js:181:20

when I try to add unique slugs for nested and parent schemas.

Can you help me with this problem?

@YuriGor
Copy link

YuriGor commented Nov 13, 2018

Implemented in this fork
Same as in MongoDB, unique slugs in nested arrays elements will be unique over collection on per-document basis, so inside nested array duplicate slugs will still be possible.

@nikhillad01
Copy link

Implemented in this fork
Same as in MongoDB, unique slugs in nested arrays elements will be unique over collection on per-document basis, so inside nested array duplicate slugs will still be possible.

This worked for me.. Thanks

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

3 participants