# Graphql: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction

**URL:** <https://community.appfarm.io/t/graphql-writeconflict-error-this-operation-conflicted-with-another-operation-please-retry-your-operation-or-multi-document-transaction/1337>\
**Category:** Ask the community\
**Tags:** data-source\
**Created:** [August 14, 2024, 11:16am UTC](https://community.appfarm.io/t/graphql-writeconflict-error-this-operation-conflicted-with-another-operation-please-retry-your-operation-or-multi-document-transaction/1337 "2024-08-14T11:16:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SinanMaric](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sinanmaric/32/1226_2.png) [@SinanMaric](https://community.appfarm.io/u/SinanMaric)\
**Post date:** [August 14, 2024, 11:16am UTC](https://community.appfarm.io/t/graphql-writeconflict-error-this-operation-conflicted-with-another-operation-please-retry-your-operation-or-multi-document-transaction/1337/1 "2024-08-14T11:16:47Z")

</div>

I am trying to delete many records for a data source. Why do I get the following error? I am the only one performing the query.

Query:

```auto
mutation {
  deleteqAanswer(filter: {idDitio: {eq: null}}) {
    deletedCount
  }
}

```

Error:

```auto
{
  "errors": [
    {
      "message": "WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "deleteqAanswer"
      ]
    }
  ],
  "data": {
    "deleteqAanswer": null
  }
}

```

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [August 14, 2024, 12:01pm UTC](https://community.appfarm.io/t/graphql-writeconflict-error-this-operation-conflicted-with-another-operation-please-retry-your-operation-or-multi-document-transaction/1337/2 "2024-08-14T12:01:24Z")

</div>

Hi,

Are there any elements in the ObjectClass that are being accessed frequently?  
This might occur if someone is writing to the same document at the same time as the deletion.

You can read more about WriteConflicts [here](https://docs.appfarm.io/reference/appfarm-client/warnings-and-errors#action-node-failed-persist-objects-greater-than-mongoservererror-writeconflict-error) 🙂

// Erik
