Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Field → List All

AI-generated

Overview

This node interacts with the Directus API to list all fields of a specified resource. It is useful for retrieving metadata about the fields available in a Directus collection or database table. For example, it can be used to dynamically fetch field information for building user interfaces or for data processing workflows.

Use Case Examples

  1. Retrieve all fields of a 'products' collection to display their metadata.
  2. Fetch all fields of a 'users' resource to analyze or transform user data.

Properties

Name Meaning
Split Into Items Determines whether to output each element of an array as its own separate item in the workflow output.

Output

JSON

  • fields - Array of field objects retrieved from the Directus API, representing metadata of each field in the specified resource.

Dependencies

  • Directus API access with appropriate authentication credentials

Troubleshooting

  • Ensure the Directus API credentials are correctly configured and have permission to access the fields endpoint.
  • If the output is empty, verify that the specified resource exists and contains fields.
  • Check network connectivity and API endpoint URL if requests fail.

Links

Discussion