arashsheyda / nuxt-mongoose

A Nuxt module for simplifying the use of Mongoose in your project.
https://docs.arashsheyda.me/nuxt-mongoose
69 stars 11 forks source link

How to create Discriminators #56

Closed RodrigoRoy closed 1 month ago

RodrigoRoy commented 2 months ago

I just learned how to use Discriminators and I think it has great potential. I checked the pull request "add discriminators.ts helper" by @jbool24 about this issue, but I think it's still unavailable in the API to create discriminators.

Any plans to implement it or sugestions about this topic? Thanks a lot for NuxtMongoose, I really appretiate the effort of all the people involved.

arashsheyda commented 2 months ago

yes thanks to @jbool24 we can have discriminators, but there was discussion on implementing it as Combined Factory Function or Separate Factory Functions

see this comment for more detail

@RodrigoRoy what would you choose as a user?

arashsheyda commented 1 month ago

added in #47