SysDropIndexNamed
Drops the specified index from the identified custom entity collection.
Service | Operation |
---|---|
customEntity | SYS_DROP_INDEX_NAMED |
Method Parameters
Parameter | Description |
---|---|
entityType | The entity type identifying the applicable custom entity collection. |
indexName | The name of the index to be dropped. |
indexKeysJson | The field index keys, as JSON object, identifying the index to be dropped. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var entityType = "athletes";
var indexName = "indexName";
var indexKeysJson = {
"data.penalties": 1
};
var customEntityProxy = bridge.getCustomEntityServiceProxy();
var postResult = customEntityProxy.sysDropIndexNamed(entityType, indexName, indexKeysJson);
if (postResult.status == 200) {
// Success!
}
{
"service": "customEntity",
"operation": "SYS_DROP_INDEX_NAMED",
"data": {
"entityType": "athletes",
"indexName": "indexName",
"indexKeysJson": {
"data.penalties": 1
}
}
}