ecommerce-admin
ecommerce-admin copied to clipboard
having error in product saving pls help me in resolving
Use prisma ORM to manipulate db (any db)actions and it's prevent us from errors
The issue is that you're passing an empty string to the product's model "category" property on Product.create. It's throwing an error because it expects a string that is a ObjectId.