multiple

This block is part of the mutations group and was last modified in core v10.4.28.

multiple v10.4.28

combine multiple mutations into one.

In pins 2
  • mutations_1 required
    mutations
  • mutations_2 required
    mutations
Out pins 1
  • mutations
    mutations

Concatenates every wired mutations input into a single mutations list, in pin order. Inputs that are unwired, nil, or not a mutations array are skipped; with no valid inputs the output is an empty list.

multiple merges the mutations from its input pins into one set. Two set fields blocks prepare name and email here, and the combined mutations feed update document.

Studio canvas example for the multiple block: combining two mutation sets.

Commonly used with

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

  • set fields: feeds into this block. Generates an array of mutations based on the given filled fields.
  • if: feeds into this block. use mutations X or Y based on a condition.
  • set custom field: feeds into this block.
  • update document: this block feeds into it. Update document in the given storage and creates a revision for it.
  • object from mutations: this block feeds into it. Builds a new object filled with the given mutations.
  • add to custom array: feeds into this block. push any given type to the array.

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v10.4.28.


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