Hey does anyone have MongoDB set up with Prisma ye...
# orm-help
l
Hey does anyone have MongoDB set up with Prisma yet? I'm currently trying to set the id property with the @id directive but it doesn't save to MongoDB. It saves with a unique _id in MonogoDB, but according the the docs here: https://www.prisma.io/docs/releases-and-maintenance/features-in-preview/mongodb-b6o5/#directives you should be able to set any property name such as 'smoosh: ObjectId' which doesn't seem to be the case. I've even tried setting smoosh and always see in the DB still _id:
n
Sorry if this isn't clear enough from the docs, any field that you annotate with
@id
will be named
_id
in the Mongo instance -> https://www.prisma.io/docs/releases-and-maintenance/features-in-preview/mongodb-b6o5/#limitations-and-notes
l
Okay makes sense ! However, some reason I'm unable to see these _id when I console.log the object
n
Hmm, if you think this is a bug would you mind creating an issue for that? https://github.com/prisma/prisma/issues/new?template=bug_report.md
👍 2
l
Yes no problemo, I will create one now