* updated the screenshots * reduced the gif size * reverted the package.json file * edited the zoomed in images and replaced some gifs with screenshots * removed one gif * update static media * update file names * update toolbar * fix file names * fix: dynamodb img path * update media for org management dashboard * fix: casing and formatting * update workspace constant media * update media in workspace settings and github * update github sso * minor change to github sso docs * minor fix * update google sso * change includeCurrentVersion flag to false --------- Co-authored-by: Asjad Ahmed Khan <iitasjad2001@gmail.com> Co-authored-by: Asjad Ahmed Khan <60435499+2001asjad@users.noreply.github.com> Co-authored-by: Karan Rathod <karan.altcampus@gmail.com>
3.2 KiB
| id | title |
|---|---|
| cosmosdb | CosmosDB |
Cosmosdb
ToolJet can connect to CosmosDB databases to read and write data.
Connection
To establish a connection with the CosmosDB data source, you can either click on the +Add new data source button located on the query panel or navigate to the Data Sources page through the ToolJet dashboard.
ToolJet requires the following to connect to your Cosmos DB.
- Cosmos DB Account End point
- Cosmos DB Account Key
:::info Azure Cosmos DB End point is the URL of the Cosmos DB service. Azure Cosmos DB Key is the key that is used to access the Cosmos DB service. You can find the endpoint and key in the Azure Portal. :::
Supported Queries:
- Listing databases
- Listing containers
- Inserting item(s)
- Retrieving an item
- Deleting an item
- Querying documents
Listing Databases
This query lists all the databases in a Cosmos DB.
Listing Containers
This query lists all the containers of a database in a Cosmos DB.
| Fields | Description |
|---|---|
| database | id of the database |
Inserting Item(s)
This query inserts one or more items in a container of a database in a Cosmos DB.
| Fields | Description |
|---|---|
| database | id of the database |
| container | id of the container |
| items | items to be inserted. Example: {{[{name: "one", val: 1}, {name:"two", val: 2}]}} |
Retrieving An Item
To read a single item from a container of a database in a Cosmos DB, use the following query.
| Fields | Description |
|---|---|
| database | id of the database |
| container | id of the container |
| item | id of the item |
Deleting An Item
To delete an item from a container of a database in a Cosmos DB, use the following query.
| Fields | Description |
|---|---|
| database | id of the database |
| container | id of the container |
| item | id of the item |
Querying Documents
To query documents from a container of a database in a Cosmos DB using SQL-like syntax, use the following query.
| Fields | Description |
|---|---|
| database | id of the database |
| container | id of the container |
| query | query to be executed. Example: SELECT * FROM c WHERE c.age > 20 AND c.age <= 30 |
