createPersistentIndex method
Creates an index See https://www.arangodb.com/docs/devel/http/indexes-working-with.html for details.
Implementation
Future<IndexResponse> createPersistentIndex(IndexCriteria criteria) async {
final answer = await _httpPost([
'_db',
db,
'_api',
'index'
], {
'name': criteria.indexName,
'type': 'persistent',
'fields': criteria.fieldNames,
'unique': criteria.unique,
'deduplicate': criteria.deduplicate,
'sparse': criteria.sparse,
'inBackground': criteria.inBackground,
}, queryParameters: {
'collection': criteria.collectionName,
});
final ret = _toIndexResponse(answer);
return ret;
}