Actions11
Overview
The node "Appwrite Helper" is a utility node designed to assist with building Appwrite queries, permissions, and schemas. Specifically, for the "Build Schema" operation, it allows users to construct schema definitions either through a user-friendly form or by providing JSON input. This is useful for defining data structures in Appwrite databases, enabling users to specify attributes with types, constraints, and other properties.
Use Case Examples
- A user wants to define a new database schema with attributes like name (string), age (integer), and email (email type). They can use the form input mode to add these attributes easily.
- Alternatively, a user can provide a JSON array describing the schema attributes directly, which is useful for programmatic or bulk schema creation.
Properties
| Name | Meaning |
|---|---|
| Input Mode | Determines how the schema attributes are provided, either via a form or JSON input. |
| Schema Attributes | List of attributes for the schema when using the form input mode. Each attribute includes type, key, size, required flag, array flag, enum elements, and min/max values depending on the type. |
| Schema Input (JSON) | Array of attributes in JSON format when using the JSON input mode. |
Output
JSON
json- The constructed schema object or error information if the operation fails.
Dependencies
- Requires connection to Appwrite service for schema operations.
Troubleshooting
- If the schema attributes are incorrectly formatted, the node may throw validation errors. Ensure required fields like 'key' are provided and types are valid.
- When using JSON input mode, ensure the JSON is well-formed and matches the expected schema attribute structure.
- Errors related to Appwrite API connectivity or authentication may occur if credentials are not properly configured.
Links
- Appwrite Database Collections - Official documentation on how to define and manage database schemas in Appwrite.