Flurrih
PPrisma
•Created by Flurrih on 8/6/2024 in #help-and-questions
[Prisma][MongoDB][Lucia] Malformed objectID
But I did some debuging around, and for me it looks like Prisma, but its my first time doing those stuff so not sure
6 replies
PPrisma
•Created by Flurrih on 8/6/2024 in #help-and-questions
[Prisma][MongoDB][Lucia] Malformed objectID
but then, Im using Lucia:
So Im not sure if its Prisma's id or Lucia's tbh
6 replies
PPrisma
•Created by Flurrih on 8/6/2024 in #help-and-questions
[Prisma][MongoDB][Lucia] Malformed objectID
it seems like the schema is generating it:
with , but then it expects and it throws the error.
I fixed the issue by doing this:
so Im using uuid() and String - not native MongoDB ObjectID, and it works...
Perhaps maybe theres some bug with Prisma somewhere for MongoDB? The User that had the ObjectID was correctly created, but the Session is failing on the ObjectIDs - might be due to userId being reference to ObjectId and have two IDs in one schema?
6 replies