Comments (18)
That is more than likely a bug. Should have a fix in a day or two.
from mers.
Cool, thanks for the prompt response.
from mers.
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.
from mers.
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 [email protected] wrote:
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.
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/10#issuecomment-21663646
.
from mers.
Excellent, thanks for your great work we really appreciate it.
from mers.
Sorry for not getting this fixed, there are so many cases... to check for. I am still working on it.
from mers.
+1. Lucky I found this post too... Was really breaking my head. Mers looks amazing, so thumbs up!
from mers.
Looking forward to the results of your efforts, should be cool.
from mers.
Running into the same problem. Was this working in a previous version?
from mers.
no it was never implemented. The implementation needs to do a lot of
stuff to work in all the situations so its taking a bit more time to
implement than I actually have. Be cool if someone wanted to take a stab
at fixing it, I can give some direction.
On Fri, Aug 16, 2013 at 10:49 AM, meertens [email protected] wrote:
Running into the same problem. Was this working in a previous version?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-22770700
.
from mers.
Sorry, I won't have time (or the skills) for this any time soon.
from mers.
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.
from mers.
Shoot that was just put not post... ok. reopening hopefully it won't take long.
from mers.
Alright, still need to implement delete, but post put are working so, calling it done for today.
from mers.
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.
from mers.
Currently, it just uses the positional index, not the ID, that would be a
good feature to have. I will see about adding it in the next couple of
days.
http://localhost:3000/api/department/1234/employees/http://localhost:3000/api/department/1234/employees/3210
should work.
On Mon, Sep 16, 2013 at 10:28 AM, Simon Lomax [email protected]:
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.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-24513835
.
from mers.
Cool, same for delete would be great as well.
from mers.
will add that to the list of stuff. Wed, I usually get to work on
things, so look for a new release thurs.
On Mon, Sep 16, 2013 at 10:44 AM, Simon Lomax [email protected]:
Cool, same for delete would be great as well.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-24515067
.
from mers.
Related Issues (20)
- MissingSchemaError instead of 404 HOT 3
- Validation errors on PUT cause crash HOT 1
- default transformer? HOT 1
- Post Data Not Saving HOT 3
- How can I protect UPDATE, DELETE, INSERT endpoints with authentication? HOT 3
- Posting multi level schemas HOT 4
- Populate Nested refernces HOT 2
- Error With Status of 0 HOT 3
- app.del deprecated HOT 1
- Add option to use raw MongoDB queries in the query string HOT 2
- Default query transformer? HOT 2
- Error handling for POST HOT 5
- Mongoose: Remove hook not triggered when removing HOT 1
- NPM version not latest HOT 1
- Can't POST new doc HOT 1
- What is the license of this code? HOT 4
- Custom ResultStream issue HOT 3
- How do you use transformers ? HOT 1
- Find on Schema only ever returns 1 record HOT 10
- Restify? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mers.