-
Notifications
You must be signed in to change notification settings - Fork 42
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
Problem trying to post a record to a nested collection #10
Comments
That is more than likely a bug. Should have a fix in a day or two. |
Cool, thanks for the prompt response. |
It looks like you started work on fixing this bug (and thought you might have it complete in a couple of days), but that was 3 weeks ago. Is this problem proving too difficult or have you just not had to time to work on it? MERS looks really promising but IMHO it really needs to handle sub-docs. |
Sorry just busy, ill put aside some time Sunday to fix. Sent from my iPhone On Jul 27, 2013, at 6:49 AM, Simon Lomax notifications@github.com wrote: It looks like you started work on fixing this bug (and thought you might — |
Excellent, thanks for your great work we really appreciate it. |
Sorry for not getting this fixed, there are so many cases... to check for. I am still working on it. |
+1. Lucky I found this post too... Was really breaking my head. Mers looks amazing, so thumbs up! |
Looking forward to the results of your efforts, should be cool. |
Running into the same problem. Was this working in a previous version? |
no it was never implemented. The implementation needs to do a lot of On Fri, Aug 16, 2013 at 10:49 AM, meertens notifications@github.com wrote:
|
Sorry, I won't have time (or the skills) for this any time soon. |
I think its fixed. I am sure there are corner cases it doesn't handle but check 0.7.0 and let me know if you have issues. Thanks for the reports. |
Shoot that was just put not post... ok. reopening hopefully it won't take long. |
Alright, still need to implement delete, but post put are working so, calling it done for today. |
Just upgraded to version 0.7.1-0. Using the example above I can now POST to url: http://localhost:3000/api/department/1234/employees and a new employee is created. Its added to the employees collection, nested within a department document. Excellent ! However if I then try to PUT to http://localhost:3000/api/department/1234/employees/321 (assuming 321 is the id of the employee just created) I get an error stating "Cannot set property 'firstname' of undefined." Where firstname is part of the employee model. Am I doing something wrong. |
Currently, it just uses the positional index, not the ID, that would be a On Mon, Sep 16, 2013 at 10:28 AM, Simon Lomax notifications@github.comwrote:
|
Cool, same for delete would be great as well. |
will add that to the list of stuff. Wed, I usually get to work on On Mon, Sep 16, 2013 at 10:44 AM, Simon Lomax notifications@github.comwrote:
|
I'm having a problem trying to post a record to a nested collection
This is my schema:
This is my server startup code :
When I attempt to post to the following URL:
http://localhost:3000/api/department/1234/employees
I receive a 404. What am I doing wrong?
The text was updated successfully, but these errors were encountered: