S
S
Swert2022-02-15 15:44:13
MongoDB
Swert, 2022-02-15 15:44:13

Not creating new documents in MongoDB?

Hello! Installed MongoDB on Debian11. I use Prisma ORM to work with the database.

When creating or updating an existing record, I get this error.
620b9f477646f446510578.png

Added parameter

mongodb://127.0.0.1:27017/test?retryWrites=false
but the error remained (also passed retryWrites=true).
620b9feb79152402615875.png

I can get posts but I can't edit them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rag'n' Code Man, 2022-02-15
@swert-tech

I have two assumptions:
1) You run the database in docker and use whatever version, in which case switch to mongo:4.4.7-focal, it also supports retryWrites.
2) Monge does not have enough permissions to write files on your system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question