Farman Ali
Results
2
issues of
Farman Ali
Is there any command line utility to generate routes, models, validators and other files for each new model?
``` typescript //get user Profile public getUserProfile = async (user_id: string): Promise => { console.log("Validity =====>", Mongoose.Types.ObjectId.isValid(user_id)); const data = await Profile.findOne({ user: Mongoose.Types.ObjectId.createFromHexString(user_id) }); return data; }; ``` In...