incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ido Ran <ido....@gmail.com>
Subject Re: $.couch.app.saveDoc
Date Sat, 18 Sep 2010 14:21:45 GMT
It's not exactly about this problem but where is the code of $.couch.db and
$.couch.login is actually at?
I've looked in jquery.couch.app.js and jquery.couch.app.util.js but there is
nothing there.

Thank you,
Ido

On Sat, Sep 18, 2010 at 4:08 PM, Chris Anderson <jchris@apache.org> wrote:

> On Sat, Sep 18, 2010 at 5:11 AM, Tyler Gillies <tyler@pdxbrain.com> wrote:
> > How do i save a doc with a custom doc_id using the $.couch object?
> >
>
>
> So, when dealing with $.couch.app, keep in mind that it is not a
> CouchDB client, it is just a wrapper script around jquery.couch.js, so
> the answer you are looking for is in $.couch.db(foo).saveDoc()
>
> Just save an object like
>
> {
> _id : "myid",
> ...
> }
>
> Chris
>
> > --
> > http://www.readwriteweb.com/about#tyler
> >
> > My website: http://list.pdxbrain.com
> >
>
>
>
> --
> Chris Anderson
> http://jchrisa.net
> http://couch.io
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message