Hi! I have a little problem you might be able to help me with 🙂 We are currently building a PoC and are trying to decide on whether to use prisma or mongoose for our application. Personally I'm leaning heavily towards Prisma since I have only good experiences with it in projects that use SQL databases. However, I have a little problem currently.
For context: We are building a microservice that needs to consume messages from a rabbitmq. Those messages originate from many different sources within our company (other microservices, e-commerce applications, ERP, ...) and have a fixed structure. However, we can not guarantee that every message is schematically correct. There might be outdated or not-yet-supported fields in the message etc. Now, in order to being able to reproduce scenarios, we need to save those messages in mongoDB for at least 3 months. When I try and save a "malformed" message via Prisma, I get an error (unknown arg for example). Mongoose would just save those additional fields, no questions asked. Now, I know that this is by design, but is there any way to let prisma just ignore the circumstance that a DTO contains unknown fields and save it nonetheless?