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
First and foremost, thank you for this excellent project. Has the possibility to let the implementation of MongooseRepository decide on the name of the underlying collection it will use, been explored before? I'd be happy to assist should you approve the idea.
It turns out that there is an easy way to provide a custom name for collections without having to perform any updates in Monguito's code base 😙. As you may know, Monguito wraps Mongoose to benefit from some resources such as Schema. The constructor of this type specifies collection as an optional parameter that you can use to define a name for the collection modelled by a schema. Here's an example of how you would do it:
Good day,
First and foremost, thank you for this excellent project. Has the possibility to let the implementation of
MongooseRepository
decide on the name of the underlying collection it will use, been explored before? I'd be happy to assist should you approve the idea.Thanks again for monguito!
Best wishes,
Rijk
Originally posted by @rijkdw in #230
The text was updated successfully, but these errors were encountered: