Rong
π
α’ααααΆααπ
27/07/2025
08/06/2025
SQL
24/05/2025
AirTag and USB type C Power adapter Apple
17/05/2025
Airtag Connect ααΆαα½α Apple ID αααααΆααααΆαα Track αα ααΎααααααααΎααααΆαα αααααααααααπ»
11/05/2025
αα½ααα·ααα½ααα π
09/05/2025
Airtag Connect ααΆαα½α Apple ID αααααΆααααΆαα Track αα ααΎααααααααΎααααΆαα π₯°
08/05/2025
ααααΆααααΆαααΉααααααααΆααα»αΈα 20W αα½ααα»α 35$π»
04/05/2025
TypeScript + Mongoose Tip for Clean DTO Mapping
Ever run into this TypeScript error when returning data from MongoDB?
ππ° Type 'ObjectId' is not comparable to type 'string'
Thatβs because Mongoose returns ObjectId objects, but your frontend or API layer usually expects simple string values (especially in DTOs).
π Solution: Convert ObjectId to string in the Mapper
Letβs start from the Mongoose model and build a clean solution that maps the data into a DTO and handles the ObjectId to string conversion.
21/04/2025
Back to cpp guys
Click here to claim your Sponsored Listing.
Category
Website
Address
68
Phnom Penh
120101