# Cannot seed the database with sample data

**URL:** <https://forum.codewithmosh.com/t/cannot-seed-the-database-with-sample-data/17840>\
**Category:** React\
**Created:** [January 22, 2023, 3:27am UTC](https://forum.codewithmosh.com/t/cannot-seed-the-database-with-sample-data/17840 "2023-01-22T03:27:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aideen](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Aideen](https://forum.codewithmosh.com/u/Aideen)\
**Post date:** [January 22, 2023, 3:27am UTC](https://forum.codewithmosh.com/t/cannot-seed-the-database-with-sample-data/17840/1 "2023-01-22T03:27:00Z")

</div>

Hi, I’m going through the Mastering React course, and in 20- Setting Up the Node Backend when I want to seed the database with sample data I get below error:  
errmsg: ‘Unsupported OP\_QUERY command: delete. The client driver may require an upgrade. For more details see [https://dochub.mongodb.org/core/legacy-opcode-removal](https://dochub.mongodb.org/core/legacy-opcode-removal)’,  
code: 352,  
codeName: ‘UnsupportedOpQueryCommand’

does anyone know what the issue might be, please?

 ![Screenshot 2023-01-22 142622](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/2f3d70e89429f62ed1887566841943db66f1e899.png)

---

<div class="post-metadata">

**Author:** ![Aideen](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Aideen](https://forum.codewithmosh.com/u/Aideen)\
**Post date:** [January 22, 2023, 10:52am UTC](https://forum.codewithmosh.com/t/cannot-seed-the-database-with-sample-data/17840/2 "2023-01-22T10:52:36Z")

</div>

I checked other posts that were raised for the same issue and tried changing the rentals.js and upgrading my Node.js, but still I can see the same error when executing seed.js:  
ok: 0,  
errmsg: ‘Unsupported OP\_QUERY command: delete. The client driver may require an upgrade. For more details see [https://dochub.mongodb.org/core/legacy-opcode-removal](https://dochub.mongodb.org/core/legacy-opcode-removal)’,  
code: 352,  
codeName: ‘UnsupportedOpQueryCommand’  
}

Node.js v18.13.0

---

<div class="post-metadata">

**Author:** ![Aideen](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Aideen](https://forum.codewithmosh.com/u/Aideen)\
**Post date:** [January 23, 2023, 9:54am UTC](https://forum.codewithmosh.com/t/cannot-seed-the-database-with-sample-data/17840/3 "2023-01-23T09:54:14Z")

</div>

I used other similar posts and solved my issue. I can say that there were happy tears in my eyes after 2 buggering days of trying desperately 😂  
I downgraded my MongoDB to V5, and that’s it.

❗Just empty up the folder “c:\data\db” that you’ve made with other versions of MongoDB as it you’ll see a version incompatibility error when running “mongod” in CDM. my 2c 😉
