Open sarablanchardllc opened 3 months ago
@sarablanchardllc you need to change the from to reference the generated type
@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.
Hi @sarablanchardllc
We updated the peerDeps to pothos versions 4+, this solves you problema?
Sorry for the delay :X
Access to Prisma.dmmf was removed in edge environments: https://github.com/prisma/prisma/pull/22962
This caused issues with @pothos/plugin-prisma which was then fixed in v4: https://github.com/hayes/pothos/issues/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.