I tried using relation type as per prisma 1's new ...
# prisma1-community
s
I tried using relation type as per prisma 1's new datamodel syntax and it works fine with typescript dev server but when I run the
tsc
build it throws this error. This issue is of nexus-prisma-generate I think. blog ref: https://www.prisma.io/blog/datamodel-v11-lrzqy1f56c90 by @nikolasburk
Relation type that I added:
nexus-prisma generates the queries and stuff of the relation type that causes the issue I think.
I believe this is an issue with
nexus-prisma-generate
it should filter out the relation type.
Copy code
npx nexus-prisma-generate --client ./src/generated/prisma-client --output ./src/generated/nexus-prisma # Runs the codegen tool from nexus-prisma.
Is there any way here I can pass config to this to ignore the relation type such as
BrandToState
in my schema.
cc : @weakky