[Plugin Request] Mongoose models? #3859
-
Background: I saw in #179 that @blissi mentioned a mongoose template. Where can one find that? I don't see mongoose among the examples in the live demo, or among the plugins. Mongoose is quite popular, so I'm surprised there's no generator for it. Do people use something else? There are a 6+ libraries trying to unify the definitions between TypeScript classes and mongoose models so it seems there would definitely be a need for a mongoose generator. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
@dandv I understand if you were to add in typescript-mongodb under plugins, it will type your mongoose models codegen.yml
|
Beta Was this translation helpful? Give feedback.
-
We currently don't have a Mongoose plugin, we have a plugin for generating model types for the basic |
Beta Was this translation helpful? Give feedback.
-
I was able to find a plugin from a repo: link for generating mongoose models directly from the graphql schema. What would this repo require in order to be added to codegen as an official plugin? |
Beta Was this translation helpful? Give feedback.
-
Any update on this? |
Beta Was this translation helpful? Give feedback.
I was able to find a plugin from a repo: link for generating mongoose models directly from the graphql schema. What would this repo require in order to be added to codegen as an official plugin?