fix specify index using mongodb property

This commit is contained in:
Berkeley Martinez
2015-08-05 19:08:25 -07:00
parent 8c7a9dd818
commit e6d05e3421
4 changed files with 25 additions and 12 deletions

View File

@ -6,7 +6,12 @@
"properties": {
"name": {
"type": "string",
"unique": true
"index": {
"mongodb": {
"unique": true,
"background": true
}
}
},
"title": {
"type": "string"

View File

@ -6,7 +6,12 @@
"properties": {
"name": {
"type": "string",
"unique": true
"index": {
"mongodb": {
"unique": true,
"background": true
}
}
},
"whatDoesNonprofitDo": {
"type": "string"

View File

@ -6,28 +6,29 @@
"properties": {
"name": {
"type": "string",
"unique": true
"index": {
"mongodb": {
"unique": true,
"background": true
}
}
},
"headline": {
"type": "string",
"unique": false
"type": "string"
},
"timePosted": {
"type": "number",
"default": 0
},
"link": {
"type": "string",
"unique": false
"type": "string"
},
"metaDescription": {
"type": "string",
"default": "",
"unique": false
"default": ""
},
"description": {
"type": "string",
"unique": false
"type": "string"
},
"originalStoryAuthorEmail": {
"type": "string",

View File

@ -10,6 +10,7 @@
"index": {
"mongodb": {
"unique": true,
"background": true,
"sparse": true
}
}
@ -46,7 +47,8 @@
"require": true,
"index": {
"mongodb": {
"unique": true
"unique": true,
"background": true
}
}
},