Actions44
- User Actions
- Database Actions
- Collection Actions
- Document Actions
- Index Actions
- Function Actions
- Storage Actions
Overview
This node integrates with the Appwrite API to manage various resources, including collections within databases. Specifically, for the Collection - List operation, it retrieves a list of all collections inside a specified database.
This is useful when you want to programmatically fetch and work with the metadata of collections in an Appwrite database, such as displaying available collections, automating collection management, or syncing collection data with other systems.
Example use case:
You have multiple collections in your Appwrite database and want to dynamically retrieve their details to build a dashboard or automate backups.
Properties
| Name | Meaning |
|---|---|
| Database ID | The unique identifier of the database in which to list collections. This is required to specify the target database. |
Output
The output is a JSON array where each item represents a collection object retrieved from the specified database. Each collection object typically contains metadata about the collection such as its ID, name, permissions, and document security settings.
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the Appwrite API.
- The node uses the Appwrite client library internally to communicate with the Appwrite server.
- Proper configuration of the Appwrite API credentials in n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing Database ID will cause the API call to fail.
- Incorrect or expired API credentials will result in authentication errors.
- Network connectivity issues can prevent communication with the Appwrite server.
Error messages:
- Errors returned from the Appwrite API are captured and presented with details if available.
- If the node fails due to an unknown error, it returns a generic message "An unknown error occurred."
- To resolve errors, verify that the Database ID is correct, the API credentials are valid, and the Appwrite server is reachable.