25 files changed
+481
-12
No files matched your search
@@ -581,6 +581,7 @@ export const mongoAggregateDocuments = forward("mongoAggregateDocuments");
|
||||
export const mongoDistinct = forward("mongoDistinct");
|
||||
export const mongoCollectionStats = forward("mongoCollectionStats");
|
||||
export const mongoCreateIndex = forward("mongoCreateIndex");
|
||||
export const mongoCreateUser = forward("mongoCreateUser");
|
||||
export const mongoDropIndexes = forward("mongoDropIndexes");
|
||||
export const documentInsertDocument = forward("documentInsertDocument");
|
||||
export const mongoInsertDocument = forward("mongoInsertDocument");
|
||||
|
||||
@@ -3202,6 +3202,15 @@ export async function mongoCreateIndex(connectionId: string, database: string, c
|
||||
});
|
||||
}
|
||||
|
||||
export async function mongoCreateUser(connectionId: string, database: string, userJson: string, writeConcernJson?: string): Promise<{ affected_rows: number }> {
|
||||
return post("/api/mongo/create-user", {
|
||||
connectionId,
|
||||
database,
|
||||
userJson,
|
||||
writeConcernJson,
|
||||
});
|
||||
}
|
||||
|
||||
export async function mongoDropIndexes(connectionId: string, database: string, collection: string, indexesJson?: string, single = false): Promise<MongoDropIndexesResult> {
|
||||
return post("/api/mongo/drop-indexes", {
|
||||
connectionId,
|
||||
|
||||
@@ -3136,6 +3136,15 @@ export async function mongoCreateIndex(connectionId: string, database: string, c
|
||||
});
|
||||
}
|
||||
|
||||
export async function mongoCreateUser(connectionId: string, database: string, userJson: string, writeConcernJson?: string): Promise<{ affected_rows: number }> {
|
||||
return invoke("mongo_create_user", {
|
||||
connectionId,
|
||||
database,
|
||||
userJson,
|
||||
writeConcernJson,
|
||||
});
|
||||
}
|
||||
|
||||
export async function mongoDropIndexes(connectionId: string, database: string, collection: string, indexesJson?: string, single = false): Promise<MongoDropIndexesResult> {
|
||||
return invoke("mongo_drop_indexes", {
|
||||
connectionId,
|
||||
|
||||
Reference in new issue
Block a user