Closed danhollick closed 4 years ago
Sorry for this confusing I updated my tool to get schema as an object because converting .prisma file every request takes a long time and slow our server. I just updated docs please take look here https://prisma-tools.ahmedelywa.com/delete/
Okay cool. Might be nice for it fail with an error message in the future, especially because it depends on another package.
When using the
Delete
package I get the following error.Cannot read property 'find' of undefined.
My code looks like this:
I think it' coming from this line:
I think the problem is that
PrismaDelete
expects the schema to be of typeSchemaObject
from yourprisma-tools/select
package but I can't see anywhere that the schema is being parsed into that format? Am I missing something?The docs also don't mention anything about needing to do that manually.