You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db: mongooseAdapter({
url: process.env.DATABASE_URI,
transactionOptions: false // <-- this
})
to get it working. Otherwise
creating a new document fails in the findOrCreateArticleDirectory method of filesApiByDocument called by the afterChange hook because the document does not yet exist in the DB, when executing
updating an existing document fails with MongoServerError: Caused by :: Write conflict during plan execution and yielding is disabled. :: Please retry your operation or multi-document transaction. Didn't debug this yet
The text was updated successfully, but these errors were encountered:
OK, this took me a while.
In
payload.config.ts
I needed to setto get it working. Otherwise
findOrCreateArticleDirectory
method offilesApiByDocument
called by theafterChange
hook because the document does not yet exist in the DB, when executingMongoServerError: Caused by :: Write conflict during plan execution and yielding is disabled. :: Please retry your operation or multi-document transaction.
Didn't debug this yetThe text was updated successfully, but these errors were encountered: