You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
couch.get(dbName, viewURL, {
"key" : "Extra. This is what I want to search for. Extra."
}).then(function(data, status, headers){
if(data.data.rows[0] === undefined){
// nothing exists in the view by this key
}
else console.log(data.data.rows[0]) // gives first JSON element in db
});
My question is if there is a way to query it so that the key only has to contain "This is what I want to search for." and doesnt care about the extra information. I realize that this is not the proper way that key:value pairs should be used, but I need it for a work around.
The text was updated successfully, but these errors were encountered:
I am trying to do the following:
My question is if there is a way to query it so that the key only has to contain "This is what I want to search for." and doesnt care about the extra information. I realize that this is not the proper way that key:value pairs should be used, but I need it for a work around.
The text was updated successfully, but these errors were encountered: