trim

Generic Description

Removes surrounding whitespace, or explicit surrounding characters when the extended form is used. It is documented separately because text normalization and slicing often become grouping keys, search inputs, or exported identifiers.

Simple example:

RETURN trim('  Runbook  ') AS value

Consumer-Level Explanation

Use it to normalize source fields before comparing or grouping them. Prefer this function when the text operation is part of the query contract and should be visible during review.

More Detailed Explanation

trim runs inside the row pipeline, which makes text cleanup, extraction, and grouping keys visible to Nexyron instead of hidden in application code. That is especially important for imported document metadata, labels, and identifiers that feed later matching or indexing.

Advanced Example

This example applies trim while shaping document metadata, so text cleanup is part of the auditable query rather than an application-side afterthought.

WITH [' Incident Review ', ' Runbook '] AS titles
UNWIND titles AS raw_title
RETURN raw_title, trim(raw_title) AS normalized_title
ORDER BY normalized_title

Real Use Cases

Real Limitations And Tradeoffs