apoc.text.format

Neo4j 2026.08 introduced string Interpolation to Cypher 25. It can be used to replace most of the use cases of this function.

Details

Syntax

apoc.text.format(text, params [, language ])

Description

Formats the given STRING with the given parameters.

Arguments

Name

Type

Description

text

STRING

The format string.

params

LIST<ANY>

Arguments referenced by the format specifiers in the format string.

language

STRING

An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length. The default is: en.

Returns

STRING

Usage Examples

apoc.text.format
WITH "Bloom" AS bloom
RETURN apoc.text.format("Neo4j %s", [bloom]) AS output
Using Cypher’s string interpolation
WITH "Bloom" AS bloom
RETURN s"Neo4j { bloom }" AS output
Results
output

"Neo4j Bloom"