Giter Site home page Giter Site logo

Comments (18)

jspears avatar jspears commented on August 25, 2024

That is more than likely a bug. Should have a fix in a day or two.

from mers.

simax avatar simax commented on August 25, 2024

Cool, thanks for the prompt response.

from mers.

simax avatar simax commented on August 25, 2024

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.

jspears avatar jspears commented on August 25, 2024

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.

simax avatar simax commented on August 25, 2024

Excellent, thanks for your great work we really appreciate it.

from mers.

jspears avatar jspears commented on August 25, 2024

Sorry for not getting this fixed, there are so many cases... to check for. I am still working on it.

from mers.

CyberCM avatar CyberCM commented on August 25, 2024

+1. Lucky I found this post too... Was really breaking my head. Mers looks amazing, so thumbs up!

from mers.

simax avatar simax commented on August 25, 2024

Looking forward to the results of your efforts, should be cool.

from mers.

meertens avatar meertens commented on August 25, 2024

Running into the same problem. Was this working in a previous version?

from mers.

jspears avatar jspears commented on August 25, 2024

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.

meertens avatar meertens commented on August 25, 2024

Sorry, I won't have time (or the skills) for this any time soon.

from mers.

jspears avatar jspears commented on August 25, 2024

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.

jspears avatar jspears commented on August 25, 2024

Shoot that was just put not post... ok. reopening hopefully it won't take long.

from mers.

jspears avatar jspears commented on August 25, 2024

Alright, still need to implement delete, but post put are working so, calling it done for today.

from mers.

simax avatar simax commented on August 25, 2024

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.

jspears avatar jspears commented on August 25, 2024

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.

simax avatar simax commented on August 25, 2024

Cool, same for delete would be great as well.

from mers.

jspears avatar jspears commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.