Open AghaShayan123 opened 1 month ago
@AghaShayan123 your error look like you using mongodb local and maybe it hasn't enabled. I also using the mongodb local but facing with other error:
code: 'P2023', clientVersion: '5.10.2', meta: { modelName: 'Session', message: 'Malformed ObjectID: provided hex string representation must be exactly 12 bytes, instead got: "mason- check.myshopify.com_80855007369", length 37.' }
You also need to restart your nextjs server if you make any changes to prisma.
Hi, I have updated schema.prisma file with below code to connect with MongoDB but still not working
datasource db { provider = "mongodb" // other supported providers are: postgresql, mysql, sqlite, sqlserver, mongodb url = env("DATABASE_URL") directUrl = env("DIRECT_DATABASE_URL") }
Getting below error