incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: $.couch.app.saveDoc
Date Sat, 18 Sep 2010 14:08:28 GMT
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
View raw message