Skip to content

Commit

Permalink
Merge pull request #395 from kendraio/mapping-docs
Browse files Browse the repository at this point in the history
Add data object example to mapping docs
  • Loading branch information
CodeKrakken authored Oct 18, 2023
2 parents 129c3a8 + 6d8377a commit df46c34
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/workflow/blocks/mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ This will keep any item that has a "deleted" flag in the "tags" array. More usef
Adding a new key to an object
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you're wrangling data from one form to another, you may need to add new keys.
If you're wrangling data from one form to another, you may need to add new keys.

.. code-block:: text
data.merge(@, { key: value })
If your data is an array, you can iterate through its elements with ``[*]``.
In the below example, the new key/value pair is added to each element of the array.

.. code-block:: text
Expand Down

1 comment on commit df46c34

@vercel
Copy link

@vercel vercel bot commented on df46c34 Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kendraio-app – ./

kendraio-app-git-develop-kendraio.vercel.app
kendraio-app-kendraio.vercel.app

Please sign in to comment.