{
"kind": "collectionType",
"collectionName": "companies",
"info": {
"name": "Company",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"name": {
"type": "string"
},
"trade": {
"model": "trade-type"
},
"address": {
"type": "string"
},
"postcode": {
"type": "string"
},
"email": {
"type": "email",
"unique": true
},
"phone": {
"type": "string"
},
"mobile": {
"type": "string"
},
"location": {
"type": "json"
}
}
}
I want to create a 2dSphere index on the location field.