Closed horvathpatrik closed 2 years ago
can confirm. also, conventionally plugin config occurs before schema is sent to produce the model.
schema.plugin(aggregatePaginate({...config: here}));
model = db.model('name', schema)
+1
Any workaround available?
Fixed in new version.
The global settings feature is broken, i can't access
aggregatePaginate
object.index.js
should containmodule.exports.aggregatePaginate = aggregatePaginate;
to fix it