Seb
PPrisma
•Created by Seb on 11/14/2024 in #help-and-questions
mongo dates without JS Date object?
is it possible to insert a document where a property is 'dateTime' without having it be a date object? I'm open to using rawCommand as well.
The issue is i've build a logging service and each log has about 15-16 timestamp, which I'll want to query on for insight later on, but would involve having to convert each date on the incoming log, which are many, so ideally I'd find a way around that.
8 replies
PPrisma
•Created by Seb on 11/14/2024 in #help-and-questions
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?
4 replies