Hi @Jake W 👋
From the error message you shared, the ObjectId you passed as an argument is bigger than 12 bytes. You will need to pass an ObjectId that matches the 12bytes exactly.
j
Jake W
09/22/2022, 9:42 PM
Right yeah, but I don't know why I'm supposed to be passing an Object ID when I'm simply querying the guildId and rblxId?
r
Raphael Etim
09/23/2022, 7:35 AM
Can you check the value of Guild.id and compare with the record you have in the database?
j
Jake W
09/23/2022, 10:53 AM
It doesn't seem to be even performing the query though? Because if it didn't exist in the database, wouldn't it just return an empty array?
r
Raphael Etim
09/23/2022, 11:41 AM
Can you share a minimal repository so i can reproduce this?
j
Jake W
09/23/2022, 8:35 PM
yeah, i've just put this together quickly with the necessary files and a few edits so you can reproduce (its basically what you can see in the screenshots)
https://github.com/Jakex/prisma-test-repo