couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kowsik <kow...@gmail.com>
Subject Re: JSONQuery
Date Tue, 10 Mar 2009 15:42:48 GMT
If i remember the original context, it's for pulling out document
snippets using json-path's. So we don't have to write a view for each
of the pieces of data we want.

So if you have something like:

{
    _id: "12345",
    comments: [ 'blah', 'foo' ],
    meta: {
        author: "me"
    }
}

GET /db/12345?path=meta/author

will just return "me" instead of the entire document.

K.

On Tue, Mar 10, 2009 at 5:38 AM, Noah Slater <nslater@apache.org> wrote:
> On Tue, Mar 10, 2009 at 01:34:06PM +0100, Christopher Lenz wrote:
>> Everyone in this thread seems to know where/how JSONPath would fit into
>> CouchDB, but I have no idea :)
>
> Actually, I brought it up because most Couch Potatos use a lot of JSON.
>
> I don't really see how this would be used within CouchDB, but I may be wrong.
>
> --
> Noah Slater, http://tumbolia.org/nslater
>

Mime
View raw message