Delete some models or ignore while generating? #125
-
I'm connecting prisma to an existing postgresql db, which I can't modify the tables (only crud on existing tables). Almost 2/3 of the tables are not needed, so is it safe to delete some of the generated graphql types and queries and mutations? Or is there any options to ignore some table while generating the schemas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can delete the not used code until it not breaks while compiling 😅 Omit support for models will be added in some time, for now it only supports fields ommiting: |
Beta Was this translation helpful? Give feedback.
You can delete the not used code until it not breaks while compiling 😅
Be aware of relations resolvers.
Omit support for models will be added in some time, for now it only supports fields ommiting:
https://github.com/MichalLytek/typegraphql-prisma#hiding-prisma-model-field-in-graphql-schema