Skip to content

Is it possible define the schema before import the data ? #161

Answered by pkosiec
theseeker16 asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, okay, so it's all about Mongoose models support.

Currently, Mongo Seeding doesn't support Mongoose models import as it would require custom logic for them (which means it would need a dependency to mongoose itself).
Unfortunately, It would be a huge change and I can't promise I will implement it 😞. Sorry for that! I already described the downsizes of using mongoose here: https://github.com/pkosiec/mongo-seeding#problem-2-no-data-model-validation

Did you try other solutions prepared specifically for Mongoose, for example https://github.com/seanemmer/mongoose-seed?

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pkosiec
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #161 on March 21, 2021 18:55.