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

fix: Ignore to generate unsupported model #209

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Conversation

Quramy
Copy link
Owner

@Quramy Quramy commented Oct 13, 2023

It fixes #206 .

If Model has field definition annotated Unsupported type, prisma-client-js generator omits to generate .create or .update method of the model. It means that ModelCreateInput of this model struct cannot appear in DMMF.

ref: https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#unsupported-types

So, we should not throw an error in findPrsimaCreateInputTypeFromModelName but skip to generate factory of this model.

@Quramy Quramy merged commit a2918ab into main Oct 13, 2023
1 check passed
@Quramy Quramy deleted the fix/unsupported_model branch October 13, 2023 02:21
@Quramy Quramy restored the fix/unsupported_model branch October 13, 2023 17:40
@Quramy Quramy deleted the fix/unsupported_model branch November 30, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when using Unsupported("tsvector") as a type
1 participant