Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Field → Get

AI-generated

Overview

This node retrieves a specific field from a collection in a Directus database. It is useful when you need to fetch metadata or details about a particular field within a collection, such as its configuration or properties. For example, you might use this node to get information about a 'title' field in an 'articles' collection to understand its data type or validation rules.

Use Case Examples

  1. Fetch the 'title' field details from the 'articles' collection to display field metadata in a UI.
  2. Retrieve a specific field's configuration to dynamically generate forms based on field properties.

Properties

Name Meaning
Field Name Unique name of the field within the collection, used to specify which field to retrieve.
Collection Name Name of the collection where the field resides, used to specify the collection context for the field.

Output

JSON

  • field - The details and metadata of the requested field from the specified collection.

Dependencies

  • Requires connection to a Directus API instance with appropriate authentication credentials.

Troubleshooting

  • Ensure the specified collection and field names exist in the Directus instance; otherwise, the node will fail to retrieve the field.
  • Authentication errors may occur if API credentials are missing or invalid; verify the API key or token used for connection.
  • If the field name is not unique or incorrectly specified, the node may return an error or incorrect data.

Links

Discussion