ecommerce-admin icon indicating copy to clipboard operation
ecommerce-admin copied to clipboard

having error in product saving pls help me in resolving

Open Himanshu16j opened this issue 2 years ago • 2 comments

Screenshot 2023-10-24 194536 Screenshot 2023-10-24 194558 Screenshot 2023-10-24 194614 Screenshot 2023-10-24 194619

Himanshu16j avatar Oct 24 '23 14:10 Himanshu16j

Use prisma ORM to manipulate db (any db)actions and it's prevent us from errors

Maniprithvi avatar Feb 23 '24 17:02 Maniprithvi

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.

norberto-e-888 avatar Sep 24 '24 23:09 norberto-e-888