Global options config
Closed this issue · 3 comments
horvathpatrik commented
The global settings feature is broken, i can't access aggregatePaginate
object.
index.js
should contain module.exports.aggregatePaginate = aggregatePaginate;
to fix it
Spown commented
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)
intenser commented
+1
Any workaround available?
aravindnc commented
Fixed in new version.