Respect UDF limitations

Design UDFs as pure functions that transform data without mutating the graph in FalkorDB

falkordb d6e19ff 2 files · 1.6 KB Updated

File contents

Respect UDF limitations

Understand and work within the constraints of FalkorDB's UDF system.

Usage

Design UDFs as pure functions that perform transformations without attempting to modify the graph.

Example

# Use UDFs for transformations only; do not attempt CREATE/SET/DELETE inside JS.

Notes

  • UDFs cannot mutate the graph - they are read-only
  • UDFs cannot execute CREATE, SET, DELETE, or MERGE operations
  • UDFs should be pure functions with no side effects
  • UDFs cannot make network calls or access external resources
  • Use UDFs for data transformation, computation, and formatting only
  • For graph mutations, use Cypher queries that call UDFs for computed values

falkordb/skills/tree/main/udf-skills/respect-udf-limitations commit d6e19ff925

Frequently asked questions

npx skillmds@latest add falkordb/respect-udf-limitations