Data Inspector icon

Data Inspector

Inspect and analyze workflow data structure

Count Items

AI-generated

Overview

The Data Inspector node analyzes and inspects the structure and content of workflow data items. It supports operations such as analyzing data structure, counting items and properties, extracting unique keys, and summarizing data types. This node is useful for understanding the shape and characteristics of data flowing through a workflow, helping users debug, validate, or document their data.

Use Case Examples

  1. Counting the total number of items and properties in a dataset to get an overview of data volume.
  2. Extracting all unique keys from incoming data items to understand the data schema.
  3. Summarizing the types of properties across data items to detect inconsistencies or validate expected data types.

Properties

Name Meaning
Operation Specifies the type of data inspection to perform. Options include analyzing structure, counting items, extracting keys, and summarizing types.

Output

JSON

  • totalItems - Total number of input data items.
  • structure - Array describing each item's index, property keys, property count, and types (only for Analyze Structure operation).
  • totalProperties - Total count of all properties across all items (only for Count Items operation).
  • averagePropertiesPerItem - Average number of properties per item (only for Count Items operation).
  • uniqueKeys - Sorted list of all unique keys found in the data (only for Extract Keys operation).
  • totalUniqueKeys - Count of unique keys found (only for Extract Keys operation).
  • keyFrequency - Frequency count of each key across all items (only for Extract Keys operation).
  • propertyTypes - Object mapping each property to counts of its data types (only for Type Summary operation).
  • summary - Array summarizing dominant type and type distribution for each property (only for Type Summary operation).

Troubleshooting

  • Ensure input data is provided; empty input will result in zero counts or empty outputs.
  • Operation parameter must be set correctly; unsupported values will not produce meaningful results.

Discussion