couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Maia <patrickjourdanm...@gmail.com>
Subject how to make queries with logical operators?
Date Sun, 27 May 2012 03:43:10 GMT
Hi all, imagine I have a database that stores documents like these:

{ "type":"a", "attr1":"value1.1", "attr2":"value2.1"}
{ "type":"a", "attr1":"value1.2", "attr2":"value2.2"}
{ "type":"b", "attr3":"value3"}
{ "type":"c", "attr4":"value4"}

Is there some way to get all docs where type == "a" or  type == "b" doing
just one http request to couchdb?

Thanks,

Patrick Maia

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