Neo4j List Resource Types icon

Neo4j List Resource Types

查詢指定商家下已存在的所有資源類型。,businessId: 要查詢資源類型的商家 ID (UUID)。

Neo4j List Resource Types

AI-generated

Overview

This node queries a Neo4j graph database to list all resource types associated with a specified business. It is designed to retrieve metadata about resource types that belong to a particular business entity identified by its unique Business ID.

Common scenarios where this node is beneficial include:

  • Fetching available resource categories or types for a business in applications managing assets, inventory, or services.
  • Integrating with Neo4j to dynamically obtain resource type information for dashboards or reporting tools.
  • Automating workflows that depend on the classification of resources linked to a business.

For example, if you have a business with various resource types like "Room", "Vehicle", or "Equipment", this node will return those resource types along with their descriptions and capacities.

Properties

Name Meaning
Business ID The unique identifier (UUID) of the business whose resource types you want to query.

Output

The node outputs an array of JSON objects, each representing a resource type related to the specified business. Each object contains the following fields:

  • resourceType: The name of the resource type.
  • type_id: The unique identifier of the resource type.
  • totalCapacity: The total capacity associated with this resource type.
  • description: A textual description of the resource type.

Example output item:

{
  "resourceType": "Room",
  "type_id": "123e4567-e89b-12d3-a456-426614174000",
  "totalCapacity": 50,
  "description": "Conference rooms available for booking"
}

The node does not output binary data.

Dependencies

  • Requires a Neo4j database connection configured via credentials including host, port, username, password, and optionally database name.
  • Uses the official Neo4j driver to connect and run Cypher queries.
  • Requires proper configuration of the Neo4j credentials within n8n to authenticate and establish connectivity.

Troubleshooting

  • Missing or incomplete Neo4j credentials: The node throws an error if any required credential field (host, port, username, password) is missing or empty. Ensure all fields are correctly filled.
  • Connection failures: Errors during driver creation or session opening indicate network issues, incorrect credentials, or unreachable database. Verify Neo4j server availability and credentials.
  • Cypher query errors: If the query fails (e.g., due to invalid Business ID), the node can either stop execution or continue depending on the "Continue On Fail" setting. Check the error message for details.
  • Session closure errors: Rarely, errors may occur when closing the Neo4j session or driver; these are logged but do not affect main execution results.

Links and References

Discussion