Fix issue with reading and saving mongo documents with shard key (#1269)
This commit is contained in:
parent
0b6bb7a985
commit
37122acc33
|
@ -133,7 +133,7 @@ export default class Collection implements ViewModels.Collection {
|
|||
if (partitionKeyProperty.indexOf("$v") > -1) {
|
||||
// From $v.shard.$v.key.$v > shard.key
|
||||
partitionKeyProperty = partitionKeyProperty.replace(/.\$v/g, "").replace(/\$v./g, "");
|
||||
this.partitionKeyPropertyHeaders[i] = partitionKeyProperty;
|
||||
this.partitionKeyPropertyHeaders[i] = "/" + partitionKeyProperty;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue