Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iam getting Order validation failed error in backend terminal when I click on place order button. can anyone help me to fix this issue with line of code as i #96

Open
madhut09 opened this issue Jul 24, 2021 · 0 comments

Comments

@madhut09
Copy link

ValidationError:: orderItems.0.product: Path product is required.
at model.Document.invalidate (C:\Users\madhu\Desktop\Student Projects\Latest\mongodb\node_modules\mongoose\lib\document.js:2760:32)
at EmbeddedDocument.invalidate (C:\Users\madhu\Desktop\Student Projects\Latest\mongodb\node_modules\mongoose\lib\types\embedded.js:298:29)
at C:\Users\madhu\Desktop\Student Projects\Latest\mongodb\node_modules\mongoose\lib\document.js:2552:17
at C:\Users\madhu\Desktop\Student Projects\Latest\mongodb\node_modules\mongoose\lib\schematype.js:1273:9
at processTicksAndRejections (internal/process/task_queues.js:75:11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant