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
@sarablanchardllc you need to change the from to reference the generated type
The file I was targeting is the generated pothos-type.ts, it just lives in the same folder as the schema.prisma file (root/prisma).
"getDataModel" is found properly when running "@pothos/plugin-prisma" is at version 4.0.0.
The prisma plugin for prismos doesn't generate "getDataModel" within the "generated pothos-types.ts" file when using an earlier version.
Access to Prisma.dmmf was removed in edge environments: prisma/prisma#22962
This caused issues with @pothos/plugin-prisma which was then fixed in v4: hayes/pothos#1190
Dep requirements for Edge:
Relevant package.json info:
schema.prisma:
Error in graphql/builder.ts
Please let me know if I need to provide more information.
The text was updated successfully, but these errors were encountered: