map values to guid seeds

This block is part of the array group and was last modified in core v14.0.5.

map values to guid seeds v14.0.5

Maps each value in the array through the deterministic GUID seed hash. Produces an array of GUIDs where each GUID is derived from the corresponding value. Much faster than using array map with a custom function.

In pins 1
  • array required
    array
Out pins 1
  • array
    array

Replaces each item with the lowercase hex SHA-256 hash of the item coerced to a string using JavaScript String() rules (null becomes "null", arrays join elements with commas, plain objects become "[object Object]"). Deterministic: equal values always produce the same hash. Non-array input outputs [].

hash
guid seed

A typical wiring for map values to guid seeds: add suffix to values feeds the array pin; the array out pin feeds storage left join exists.

Studio canvas example for the map values to guid seeds block: typical wiring for map values to guid seeds.

Commonly used with

In production blueprints, this block is most often wired together with:

  • add suffix to values: feeds into this block. Appends a suffix to each value in the array.
  • storage left join exists: this block feeds into it. Left joins a boolean field into the given array based on whether a document exists in the storage for each corresponding GUID. Sets the field to true when found, false when not.

Version history

Introduced in v14.0.5.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group