mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Update params for creating collection via mongo proxy (#1310)
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user