You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It would be useful to be able set a different mongooseModel when registering a new resource rather than use the url parameter as the name of the mongoDB collection:
The text was updated successfully, but these errors were encountered:
the-AjK
changed the title
suggestion: add mongooseModel params on resources.register
suggestion: add mongooseModel parameter on resources.register
Jun 12, 2015
Actually, the url param will ignore '/' char if your url contain it. So, if you want to mongooseModel is 'books', you can set url is '/books' or 'books'. it's the same.
I think keep url and resource name is a better way to practice, and I will let this module support more other DB. So, add mongooseModel param maybe isn't a good choose.
Hi,
It would be useful to be able set a different mongooseModel when registering a new resource rather than use the url parameter as the name of the mongoDB collection:
The text was updated successfully, but these errors were encountered: