I'm wanting to do a very quick and dirty "seed" of my database with a load of blog posts... I'm happy working with Mongo cursors etc, but can't seem to find a valid lifecycle method to "plonk" this code into... This is all for a proof of concept, so it doesn't need to be perfect!
Could someone point me in the right direction? I can't seem to access the req
inside a construct
method, so can't self.insert
there...