Call a UDF from Cypher

Execute registered FalkorDB JavaScript UDFs within Cypher queries.

22|2|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/FalkorDB/skills --skill call-a-udf-from-cypher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Call a UDF from Cypher
Source: https://github.com/FalkorDB/skills/tree/main/udf-skills/call-udf-from-cypher
Command: npx skills add https://github.com/FalkorDB/skills --skill call-a-udf-from-cypher

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers execute registered FalkorDB user-defined functions within Cypher queries without needing to treat custom logic as separate application code.

Core Features & Use Cases

  • UDF Invocation: Call registered JavaScript UDF libraries and functions using FalkorDB Cypher query syntax.
  • Query Integration: Use custom functions in RETURN, WHERE, SET, and other Cypher clauses with standard argument passing.
  • Use Case: Build graph applications that extend FalkorDB query capabilities with reusable custom functions for data transformation and processing.

Quick Start

Ask the AI to call a registered FalkorDB UDF from a Cypher query using the appropriate library and function name.

Frequently Asked Questions about Call a UDF from Cypher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call a JavaScript UDF inside a Cypher query?

You can call a JavaScript UDF inside a Cypher query by invoking registered FalkorDB user-defined functions using custom function calls. This allows direct execution of reusable JavaScript logic within your graph database queries.

Can I use custom functions in WHERE or RETURN clauses in FalkorDB?

Yes, you can use custom functions in WHERE or RETURN clauses in FalkorDB. Registered user-defined functions integrate into standard Cypher clauses including RETURN, WHERE, and SET, enabling custom data transformation directly during query execution.

What are user-defined functions in a graph database used for?

User-defined functions in a graph database are used for executing reusable custom logic, such as data transformation and processing, directly inside queries. This eliminates the need to treat custom application logic as separate external code.

Does FalkorDB support running custom JavaScript logic within database queries?

Yes, FalkorDB supports running custom JavaScript logic within database queries through registered user-defined functions. This enables developers to extend graph query capabilities using reusable JavaScript libraries directly in Cypher workflows.

How do I pass arguments to a registered UDF in a Cypher query?

To pass arguments to a registered UDF in a Cypher query, use standard argument passing syntax within the custom function call. The FalkorDB query engine handles the argument mapping to the JavaScript user-defined function.