You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the python prisma client in a project that uses a shared schema. That shema has the preview feature relationJoins enabled, which breaks prisma generate:
error: The preview feature "relationJoins" is not known. Expected one of: deno, driverAdapters, fullTextIndex, fullTextSearch, metrics, multiSchema, postgresqlExtensions, tracing, views
I am not currently using that feature in my codebase, and would rather not have to be forced to modify the schema on the fly if I can avoid it, especially since it is not used in this generate.
The schema generators are as follows:
generatorclient {provider="prisma-client-js"binaryTargets=["native"]previewFeatures=["views", "multiSchema", "relationJoins"]}generatorpythonclient {provider="prisma-client-py"interface="asyncio"recursive_type_depth=5previewFeatures=["views", "multiSchema"]}generatorgoclient {provider="gorungithub.com/steebchen/prisma-client-go"previewFeatures=["views", "multiSchema"]}/// Always after the prisma-client-js generatorgeneratorjson {provider="prisma-json-types-generator"// all type overwrites are defined in src/lib/db.tspreviewFeatures=["views", "multiSchema"]}
Suggested solution
Allow prisma generate to proceed with a warning / force flag if the feature is not used in teh python provider
The text was updated successfully, but these errors were encountered:
nettrino
changed the title
Support schemas that are using the preview feature relationJoins on different clients
Support schemas that are using the preview feature relationJoins on different generators
Jan 3, 2024
This is likely because the Prisma version is outdated, I haven't published a new release for the last couple Prisma versions. Could you try installing prisma-client-py from GitHub?
Problem
I am using the python prisma client in a project that uses a shared schema. That shema has the preview feature
relationJoins
enabled, which breaks prisma generate:I am not currently using that feature in my codebase, and would rather not have to be forced to modify the schema on the fly if I can avoid it, especially since it is not used in this generate.
The schema generators are as follows:
Suggested solution
Allow prisma generate to proceed with a warning / force flag if the feature is not used in teh python provider
The text was updated successfully, but these errors were encountered: