mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
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) {
|
if (partitionKeyProperty.indexOf("$v") > -1) {
|
||||||
// From $v.shard.$v.key.$v > shard.key
|
// From $v.shard.$v.key.$v > shard.key
|
||||||
partitionKeyProperty = partitionKeyProperty.replace(/.\$v/g, "").replace(/\$v./g, "");
|
partitionKeyProperty = partitionKeyProperty.replace(/.\$v/g, "").replace(/\$v./g, "");
|
||||||
this.partitionKeyPropertyHeaders[i] = partitionKeyProperty;
|
this.partitionKeyPropertyHeaders[i] = "/" + partitionKeyProperty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user