Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Custom generator classes #195

Open
terion-name opened this issue Mar 4, 2021 · 2 comments
Open

[feature] Custom generator classes #195

terion-name opened this issue Mar 4, 2021 · 2 comments
Assignees
Labels
feature New feature or request generator generator package

Comments

@terion-name
Copy link

terion-name commented Mar 4, 2021

Example usecase: I need to generate schema with different naming conventions (e.g. replicate Prisma1/OpenCRUD convention).

I can write custom generation class, but there is no way to pas it to parent generator without extending it and overriding. It would be great to have something like this:

class LegacyGenerator {...}
new Generator({generator: {legacy: LegacyGenerator}})

Also export current generation classes to be able to extend them

@AhmedElywa AhmedElywa self-assigned this Mar 4, 2021
@AhmedElywa AhmedElywa added the feature New feature or request label Mar 4, 2021
@AhmedElywa
Copy link
Collaborator

It's a good idea.
Also, If you can help, you can make a pull request.

@AhmedElywa AhmedElywa added the generator generator package label May 19, 2021
@simonjoom
Copy link

simonjoom commented May 30, 2022

i m not sure but my work might help:
i made a paljs working with prisma1 crud system using a moded version of nexus-plugin-prisma working with prisma3
#264

can be a start?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request generator generator package
Projects
None yet
Development

No branches or pull requests

3 participants