Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Document → Get
AI-generatedOverview
This node interacts with the Appwrite API to perform operations on documents within a specified database and collection. Specifically, the 'Get' operation retrieves a document by its ID from a given database and collection. This is useful for workflows that need to fetch and process specific document data stored in Appwrite databases, such as retrieving user profiles, order details, or configuration settings.
Use Case Examples
- Fetch a user profile document by its ID to personalize a user experience.
- Retrieve an order document to process or update order status in an e-commerce workflow.
Properties
| Name | Meaning |
|---|---|
| Database ID | The ID of the database from which to retrieve the document. |
| Collection ID | The ID of the collection within the database containing the document. |
| Document ID | The ID of the specific document to retrieve. |
Output
JSON
documentId- The unique identifier of the retrieved document.collectionId- The ID of the collection containing the document.databaseId- The ID of the database containing the collection.data- The content or fields of the retrieved document as a JSON object.
Dependencies
- Appwrite API key credential for authentication, including endpoint URL, project ID, and API key.
Troubleshooting
- Common issues include invalid or missing IDs for database, collection, or document, resulting in errors from the Appwrite API.
- Authentication errors due to incorrect or expired API keys or project IDs.
- Network connectivity issues preventing access to the Appwrite endpoint.
- Error messages typically indicate the nature of the failure, such as 'Document not found' or 'Unauthorized', and can be resolved by verifying input parameters and credentials.
Links
- Appwrite Documentation - Official documentation for the Appwrite API and its usage.