-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
why Loopback + mongodb is not working? #3645
Comments
Discussed it with @jannyHou, there might be a bug in generating the OpenAPI spec. When running the POST on debug, the output is:
If I remove the |
The |
hi guys, |
In loopback3 Id was generated by loopback itself and there was no necessity to care about but in LB4 is much like relational database we can identify wich field to be id. maybe I am totally wrong. |
Thanks @rsa408. Cross posting comment from @dougal83 in loopbackio/loopback4-example-shopping#256 (comment):
FYI - The
|
I removed exclude from schema:
then I add
it is looking fine when I used POST method, for one record/document when in add several records it ( array of records )I get:
But regardless of the error message, it was POSted all records to MongoDB correctly data with autogenerated id. |
Fixed the controller generator's template in PR #3667. |
update your loopback cli for working from now
|
Hi guys,
it is 5 day that I try to start lb4 with MongoDB all the movies and tutorials I looked at the net but my problem was solved. I made git repo and uploaded a very basic code.https://github.com/RsaLB4/test
I will be appreciated if you can help me.
screenshots also are there.
Great thanks
The steps I have followed to create project:
For data :
schema/model of user:
I am getting following error:
The text was updated successfully, but these errors were encountered: