apoc.text.slug

Function APOC Core

apoc.text.slug(text, delim) - slug the text with the given delimiter

Signature

apoc.text.slug(text :: STRING?, delim = - :: STRING?) :: (STRING?)

Input parameters

Name Type Default

text

STRING?

null

delim

STRING?

-

Usage Examples

RETURN apoc.text.slug("Neo4j Aura") AS output;
Table 1. Results
output

"Neo4j-Aura"

The default delimiter is -. We can, however, pass in a custom delimiter as the second parameter:

RETURN apoc.text.slug("Neo4j Aura", ".") AS output;
Table 2. Results
output

"Neo4j.Aura"