DEV Community

loading...

[SOLVED] Mongoose create not executed when I do before a for loop. Please help?

sm-a
・1 min read

When I execute the code below I don't get any documents in Mongoose for "Detail"-collection - see line 11 in the code. Why doesn't it work? I am grateful for every tip.

I made a mistake in the previous code. Therefore it is solved now.

Discussion (0)