Actions4
View
AI-generatedOverview
The Pocketbase HTTP node with the 'View' operation allows users to retrieve a specific element from a Pocketbase collection by its name or ID. This operation is useful when you need to fetch detailed information about a single record within a collection, such as viewing user details, product information, or any other data stored in Pocketbase collections.
Use Case Examples
- Retrieve a user record by specifying the user ID to display user profile information.
- Fetch a specific product's details from an inventory collection using the product ID.
Properties
| Name | Meaning |
|---|---|
| Element Name or ID | Specifies the unique identifier or name of the element to view within the selected Pocketbase collection. |
| Parameters | Additional query parameters to customize the request, including options like expanding relations, selecting specific fields, filtering, pagination, and sorting. |
Output
JSON
id- The unique identifier of the retrieved element.created- Timestamp when the element was created.updated- Timestamp when the element was last updated.collectionId- Identifier of the collection the element belongs to.collectionName- Name of the collection the element belongs to.expand- Expanded related records if requested.fields- The actual data fields of the element as stored in the collection.
Dependencies
- Requires Pocketbase HTTP API credentials including the base URL and authentication token.
Troubleshooting
- Common issues include invalid or missing element ID, resulting in errors when fetching the record.
- Errors may occur if the specified collection or element does not exist or if authentication fails.
- Timeouts or SSL certificate issues may arise depending on network conditions and request options; these can be adjusted via node settings like timeout and SSL validation.
Links
- Pocketbase API - View Record - Official documentation for viewing a record in Pocketbase collections.