to make the limit for your product entity, you only need to add take:numberTolimit
return await Product.find({ relations: ['productSizes', 'productColors'],take:10 });
Ps : you can use skip
- offset from where entities should be taken.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…