push-server-common.design-docs.domainProfile-design.json Maven / Gradle / Ivy
{
"_id": "_design/domain",
"language": "javascript",
"views": {
"byDomainKey": {
"map": "\nfunction(doc) {\n if (doc.entityType == 'domainProfile' && doc.entity.domainKey) {\n emit(doc.entity.domainKey, null);\n }\n}"
},
"byAccountId": {
"map": "\nfunction(doc) {\n if (doc.entityType == 'domainProfile' && doc.entity.accountIds) { for (var i=0, count = doc.entity.accountIds.length; i