-
I upgraded to 2.0.0.beta.1, and an existing mutation with nested create just stopped working. I get this very verbose but incomprehensible error: My resolver has code that looks like this:
The main model "User" has two non-optional model fields, that i am trying to create as nested creates. Please help! Do i need to go back to preview022, which used to work for this, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The release notes of beta 1 explain what changed in the relation syntax: https://github.com/prisma/prisma/releases/tag/2.0.0-beta.1 After you fix that, it should work again. |
Beta Was this translation helpful? Give feedback.
-
Thanks for that tip. I cleaned up node_modules, and reinstalled beta.1, but now i get this mysterious error during nexus-prisma makeSchema. Failed to import prisma client package at @prisma/client. The following error occured while trying: |
Beta Was this translation helpful? Give feedback.
Thanks for that tip. I cleaned up node_modules, and reinstalled beta.1, but now i get this mysterious error during nexus-prisma makeSchema.
Failed to import prisma client package at @prisma/client. The following error occured while trying:
SyntaxError: Unexpected token
in JSON at position 502
at JSON.parse ()
at Object. (/../Default/node_modules/@prisma/client/index.js:703:19)
at Module._compile (internal/modules/cjs/loader.js:1147:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
at Module.load (internal/modules/cjs/loader.js:996:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Module.require (internal/modules/cjs/loader.js:1036:19)
at r…