- changed
serve
to no longer returns an Express 4 router, now returns the resource's base path (ie.:/api/v1/Customer
) - changed
options.private
andoptions.protected
to no longer accept comma separated fields, pass an array instead - removed
options.excluded
, useoptions.private
- removed support for querying directly with query parameters, use
url?query={"name":"hello"}
- removed $and and $or query parameters, use
url?query={"$or":[...]}
- removed
prereq
, usepreMiddleware
instead - changed
postCreate
,postUpdate
, andpostDelete
signatures to(req, res, next)
- deprecated
outputFn
'sdata
parameter, data now available onreq.erm.result
andreq.erm.statusCode
This release requires mongoose ~4
- updated mongoose to version 4
- removed
fullErrors
, implement a customonError
handler instead - removed
strict
option, allows DELETE without id and POST with id, disallows PUT without id - async
prereq
andaccess
now use the standard(err, data)
callback signature access
will throw an exception when an unsupported value is passed- changed
outputFn
's signature to:(req, res, { result: result, statusCode: statusCode })
This release requires mongoose ~3