PrismaP
Prisma15mo ago
3 replies
Seb

using mongo -- insert document without any checks whatsoever?

I have a logging service and <some> of the data won't exactly quite match, especially the underlying types.

I still want to have a bit of a mix between what I 100% expect to be there (like createdAt and such) and use prisma to query them -- but want to be able to not throw an error when trying to insert something that doesn't 100% match the schema (extra values basically);

Is there a way to achieve this with prisma?
Was this page helpful?