tungus
tungus copied to clipboard
Unable to test my project with mongoose 7x
Hi,
I love the idea of this lib, I thought I could switch between Mongoose versions in dev and prod mode to only fix small incompatibilities. But it shows that even my files unrelated to Mongoose are impacted
for example here
import { HydratedDocument, Model, ObjectId } from "mongoose";
type OrderDocument = HydratedDocument<IOrder<ObjectId>>;
async createOrder(
offerId: ObjectId,
userId: ObjectId,
): Promise<OrderDocument> {
const order: OrderDocument = await this.orderDao.create({
offerId: offerId,
status: "pending",
tokenCount: 100,
userId: userId,
});
return order;
}
Would be nice to port this lib along with new versions of mongoose