Closed kristianmandrup closed 7 years ago
This plugin adds the method to Query
object. Check to make sure mongoose-models returns Query
somehow.
Aha! then I might need to hack mongoose-models some extra ;)
But it does create a normal schema
And I have since hacked it to do props.schema.plugin(yourPluginHere)
when it find a plugins
entry (Object or Array)
mongoose-models plugins registration
Thanks anyways
Trying to follow your example,
deepPopulate
is not an available function.Trying to use it here
Works without deepPopulate, but then doesn't populate with nested branch/commits (obviously!)
This is my setup
Tried to register locally on
Project
schemaProject.plugin(deepPopulate)
Trying to register it globally via
mongoose.plugin
. Is this possible?