keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.62k stars 2.21k forks source link

Upgrade mongoose v5 to support v6 MongoDB #5017

Closed jerrykwok-viutv closed 11 months ago

jerrykwok-viutv commented 11 months ago

Description of changes

I have upgraded Mongoose from v5 to v6 and modified the source code to support MongoDB v6. Both Unit Tests and E2E tests have passed successfully. Additionally, I have updated an E2E test case, testRelationshipField.js, to run with npm run test-e2e because there was a test case that changed the 'Name' field previously.

Related issues (if any)

Testing

npm run test-unit
npm run test-e2e

Screenshot 2023-12-12 at 6 51 51 PM Screenshot 2023-12-12 at 6 51 24 PM