I'm prototyping couchdb for a large application (for a possible migration from 
an oracle system).

I'l like to query my objects to get those _without_ a certain key.
My data:
{'id':'2','Type':'Article', country:'USA'}
{'id':'3','Type':'Article', country:'USA'}
{'id':'4','Type':'Article',}
{'id':'5','Type':'Article', country:null}

I'd like to get the object number 4 (no field 'country').

I tried with this view:

            function(doc) {
                if  (doc.Type == "Article") {
                  emit('country' in doc, doc);
                }
            }

With False as the request key but with no luck ...

Is that feasible with couchdb ? Could you advise ?

Best,

Matt



      

Reply via email to