diff --git a/README.md b/README.md index d4a1912..ea7af8d 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ import ballerinax/mongodb; #### Initialize the MongoDB client using the connection parameters ```ballerina -mongodb:Client mongoDb = new ({ +mongodb:Client mongoDb = check new ({ connection: { serverAddress: { host: "localhost", @@ -82,8 +82,8 @@ mongodb:Client mongoDb = new ({ #### Initialize the MongoDB client using the connection string ```ballerina -mongodb:Client mongoDb = new ({ - connectionString: +mongodb:Client mongoDb = check new ({ + connection: }); ``` diff --git a/ballerina/Module.md b/ballerina/Module.md index 815c2ee..f32dfce 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -55,7 +55,7 @@ import ballerinax/mongodb; #### Initialize the MongoDB client using the connection parameters ```ballerina -mongodb:Client mongoDb = new ({ +mongodb:Client mongoDb = check new ({ connection: { serverAddress: { host: "localhost", @@ -73,8 +73,8 @@ mongodb:Client mongoDb = new ({ #### Initialize the MongoDB client using the connection string ```ballerina -mongodb:Client mongoDb = new ({ - connectionString: +mongodb:Client mongoDb = check new ({ + connection: }); ``` diff --git a/ballerina/Package.md b/ballerina/Package.md index 815c2ee..f32dfce 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -55,7 +55,7 @@ import ballerinax/mongodb; #### Initialize the MongoDB client using the connection parameters ```ballerina -mongodb:Client mongoDb = new ({ +mongodb:Client mongoDb = check new ({ connection: { serverAddress: { host: "localhost", @@ -73,8 +73,8 @@ mongodb:Client mongoDb = new ({ #### Initialize the MongoDB client using the connection string ```ballerina -mongodb:Client mongoDb = new ({ - connectionString: +mongodb:Client mongoDb = check new ({ + connection: }); ```