Fabrizio Ruggeri

Results 133 comments of Fabrizio Ruggeri

Eheh, I wrote the issue more as a reminder for myself. I wonder if anybody is still using this library though. Any good use case?

You're facing the same issue, but what's the issue exactly?

Can you please report the exact error? In your initial report there is only the code, not the error. Otherwsie, can you make a reproduction?

Hello @chumager , this code is not actively maintained as stated in the README. Untile somebody takes over the maintenance, you're free to send a PR and I'll review it....

I see. The only problem with this solution is that it triggers a find on the DB which is useless. For the moment is better NOT to use the upsert...

No, the id can be given or `undefined`. As for my understanding this problem is better explained in https://github.com/prisma/prisma/issues/5233 and for some reason there's no will to solve it, or...

While the problem is common for all DB, in mongodb is even worse because as id you can only provide an ObjectId (in sql is usually an number or a...

Thanks @janpio . Actually I think that also writing 0 for an Int or an empty string is a bad choice. We should be able to use undefined because that's...

Not that simple. The id (that can be undefined) comes usually from user interaction. So the code should be something like ``` if(id){ prisma.update() } else { prisma.create } ```...

I try to see if this is possible with vercel@edge where you actually have no control of the bundler