with objects

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

with objects v10.4.28

Returns an array of objects.

In pins 2
  • object required
    object

    First object to include in the array.

  • object required
    object

    Second object to include in the array.

Out pins 1
  • array
    array<object>

    The array with objects output.

Collects the wired object pins into an array in pin order. Only plain objects are kept - null and any non-object value are dropped, so the output can have fewer entries than wired pins.

array of objects
array objects

A typical wiring for with objects: new object feeds the object_1 pin; the array out pin feeds reply in JSON.

Studio canvas example for the with objects block: typical wiring for with objects.

Commonly used with

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

  • new object: feeds into this block. Builds a new object filled with the given fields.
  • reply in JSON: this block feeds into it. Reply to any httpconnection as JSON body.
  • set fields: this block feeds into it. Generates an array of mutations based on the given filled fields.
  • filter empty: this block feeds into it. Returns an array of all non-empty items. Empty is defined as: null or undefined.

Version history

Introduced in v10.4.28.


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