Cannot seed the database with sample data

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’,
code: 352,
codeName: ‘UnsupportedOpQueryCommand’

does anyone know what the issue might be, please?

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’,
code: 352,
codeName: ‘UnsupportedOpQueryCommand’
}

Node.js v18.13.0

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 :joy:
I downgraded my MongoDB to V5, and that’s it.

:exclamation: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 :wink: