Appwrite
ToolJet can connect to appwrite database to read/write data.
Connection
To establish a connection with the Appwrite 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 from the ToolJet dashboard.
ToolJet requires the following to connect to your Appwrite:
- Host (API endpoint)
- Project ID
- Secret Key
You'll find the Secret Key and other credentials on your Appwrite's project settings page. You may need to create a new key if you don't have one already.
You should also set the scope for access to a particular resource. Learn more about the API keys and scopes here.
![Appwrite intro](/img/datasource-reference/appwrite/connect-v3.png)
Querying Appwrite
- Click on + Add button of the query manager at the bottom panel of the editor.
- Select the Appwrite datasource added in previous step.
- Select the operation you want to perform.
- Click on the Preview button to preview the output or Click on the Run button to trigger the query.
![Appwrite intro](/img/datasource-reference/appwrite/querying-v3.png)
Query results can be transformed using Transformations. Read our Transformation Documentation here.
Supported Operations
List Documents
This operation is used to get a list of all the user documents.
Required Parameters
- Collection ID
Optional Parameters
- Limit
- Order fields
- Order types
- Field
- Operator
- Value
![Appwrite List](/img/datasource-reference/appwrite/list-v3.png)
Get Document
Use this operation to get a document from a collection by its unique ID.
Required Parameters
- Collection ID
- Document ID
![Appwrite get](/img/datasource-reference/appwrite/get-v3.png)
Add Document to Collection
Use this operation to create a new document in a collection.
Required Parameters
- Collection ID
- Body
![Appwrite add](/img/datasource-reference/appwrite/add-v3.png)
Update Document
Use this operation to update a document.
Required Parameters
- Collection ID
- Document ID
- Body
![Appwrite update](/img/datasource-reference/appwrite/upd-v3.png)
Delete Document
Use this operation for deleting a document in the collection.
Required Parameters
- Collection ID
- Document ID
![Appwrite delete](/img/datasource-reference/appwrite/del-v3.png)