in app/src/app/pages/collections/collections.component.ts [35:44]
private indexName(raw: string): string {
let parts = raw.replace(/_id/g, "$id").split('_');
let indexes: any = {};
while (parts.length > 0) {
let field = parts.shift().replace(/\$id/g, "_id");
let direction = parseInt(parts.shift(), 10) || 1;
indexes[field] = direction;
}
return indexes;
}