Overview
This node interacts with a Django backend to list objects from a specified model within a chosen Django app. It is useful for retrieving filtered data from Django models, enabling workflows to process or analyze this data further. For example, it can be used to fetch user records, product listings, or any other model data dynamically based on query parameters.
Use Case Examples
- Fetch all user objects from the 'auth' app with optional filters.
- Retrieve product data from an e-commerce app model with specific query parameters.
Properties
| Name | Meaning |
|---|---|
| App Name | Selects the Django app from which to list objects. |
| Model Name | Selects the model within the chosen app to list objects from. |
| Query Params | Optional filters to apply to the list query, specified as key-value pairs. |
| Output Mode | Determines if the node outputs the unwrapped results array or the entire raw response from the backend. |
Output
JSON
results- Array of objects retrieved from the specified Django model.rawResponse- The entire raw response from the backend when output mode is set to raw.
Dependencies
- Requires connection to a Django backend API with appropriate authentication credentials.
Troubleshooting
- Ensure the selected app and model names are correct and exist in the Django backend.
- Verify that query parameters are correctly formatted as key-value pairs.
- If the node returns an error 'Onbekende operatie', check that the operation parameter is set to 'listObjects'.
- Authentication errors may occur if API credentials are missing or invalid.