tungus icon indicating copy to clipboard operation
tungus copied to clipboard

Unable to test my project with mongoose 7x

Open ziedHamdi opened this issue 1 year ago • 0 comments

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

ziedHamdi avatar Sep 29 '23 06:09 ziedHamdi