mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-22 01:24:21 +01:00
Update params for creating collection via mongo proxy (#1310)
This commit is contained in:
parent
139a9cb22c
commit
9078878f44
@ -299,7 +299,7 @@ export function createMongoCollectionWithProxy(
|
|||||||
db: params.databaseId,
|
db: params.databaseId,
|
||||||
coll: params.collectionId,
|
coll: params.collectionId,
|
||||||
pk: shardKey,
|
pk: shardKey,
|
||||||
offerThroughput: params.offerThroughput,
|
offerThroughput: params.autoPilotMaxThroughput || params.offerThroughput,
|
||||||
cd: params.createNewDatabase,
|
cd: params.createNewDatabase,
|
||||||
st: params.databaseLevelThroughput,
|
st: params.databaseLevelThroughput,
|
||||||
is: !!shardKey,
|
is: !!shardKey,
|
||||||
@ -309,7 +309,6 @@ export function createMongoCollectionWithProxy(
|
|||||||
rg: userContext.resourceGroup,
|
rg: userContext.resourceGroup,
|
||||||
dba: databaseAccount.name,
|
dba: databaseAccount.name,
|
||||||
isAutoPilot: !!params.autoPilotMaxThroughput,
|
isAutoPilot: !!params.autoPilotMaxThroughput,
|
||||||
autoPilotThroughput: params.autoPilotMaxThroughput?.toString(),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const endpoint = getFeatureEndpointOrDefault("createCollectionWithProxy");
|
const endpoint = getFeatureEndpointOrDefault("createCollectionWithProxy");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user