Skip to content

Commit 8c33b48

Browse files
jwilliams-mongojeff-allen-mongo
authored andcommitted
(DOCSP-10473) As an author, I can specify a delimiter when concatenating arrays (#363)
* (DOCSP-10473): add description of delimiters for array concat * (DOCSP-10473): add default delimiter * (DOCSP-10473): formatting fix * tech review feedback
1 parent 0aa5c45 commit 8c33b48

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

source/rich-schema-support.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,27 @@ You can apply these accumulates to arrays of String values:
9595

9696
* - concat
9797
- Concatenates the values of the array into a a single string.
98+
In the :guilabel:`Delimiter` field, enter characters that you
99+
want |charts-short| to display between each array element. The
100+
default delimiter is ``,``.
101+
102+
.. example::
103+
104+
Consider the following array that describes movie genres:
105+
106+
.. code-block:: javascript
107+
:copyable: false
108+
109+
"genres": ["Action", "Horror", "Sci-Fi"]
110+
111+
|charts-short| concatenates the array to produce the following
112+
string when you enter ``/`` in the :guilabel:`Delimiter`
113+
field:
114+
115+
.. code-block:: none
116+
:copyable: false
117+
118+
Action/Horror/Sci-Fi
98119

99120
* - min length
100121
- Returns the length of the shortest string in the array.

0 commit comments

Comments
 (0)