the doc says
add a design
document
{
"_id": "_design/mobile",
"filters": {
"sync": "function (doc) { return doc._id.indexOf('file:') === -1 }"
}
}
I’m not sure how to add, should i use
curcurl -k -X PUT https://myname:mypass@ip:port/design '{"_id": "_design/mobile", "filters": { "sync": "function (doc) { return doc._id.indexOf('file:') === -1 }" } }'