nuxt-mongoose icon indicating copy to clipboard operation
nuxt-mongoose copied to clipboard

How to create Discriminators

Open RodrigoRoy opened this issue 10 months ago • 1 comments

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.

RodrigoRoy avatar Apr 23 '24 19:04 RodrigoRoy

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 avatar Apr 23 '24 19:04 arashsheyda

added in #47

arashsheyda avatar May 26 '24 16:05 arashsheyda