tquoctuan97 / foody-api-nestjs

2 stars 0 forks source link

Migrate id Field from Strings to ObjectIds in bills Collection #23

Closed tquoctuan97 closed 1 month ago

tquoctuan97 commented 2 months ago

I'm writing to address an issue where the id field in the bills collection was mistakenly stored as a string instead of the intended ObjectId format. I've since fixed the code to ensure future data uses ObjectIds.

Current Situation:

The bills collection currently has a mix of id fields stored as strings and ObjectIds.

Desired Outcome:

All id fields in the bills collection should be migrated to ObjectIds for consistency and proper MongoDB functionality.