Inner joiner

[data/dictionary/Inner joiner]

icon

Joins dictionary 'b' to dictionary a, by matching the values of a to the keys of b. Items from b with no matching value in a are excluded from the result. Items from a with no matching key in b are excluded from the result. Example:

  1. Received via a:

{<br>
  "first":"first_id",<br>
  "third":"third_id",<br>
  "fifth":"fifth_id"<br>
}@0<br>
```<br>
2. Received via `b`:<br>
```json<br>
{<br>
  "first_id":1,<br>
  "second_id":2,<br>
  "third_id":3<br>
}@0<br>
```<br>
3. Sent via `joined`:<br>
```json<br>
{<br>
  "first": 1,<br>
  "third": 3<br>
}@0<br>
```<br>

---

__Keywords__: dictionary, dict, join, filter, map, sanitize, extract

### Input ports

* __a__: 
    ```
    ({string: string} or {string: number} or string[] or number[])
    ```

    Receives the dictionary containing the keys to join and the values to join by.<br>
    <br>
    Example:<br>
    {"first":"first_id", "third":"third_id", "fifth":"fifth_id"}<br>


* __b__: ` ({string: any} or any[]) `

    Receives the dictionary containing the values to join and the keys to join by.<br>
    <br>
    Example:<br>
    {"first_id":1, "second_id":2, "third_id":3}<br>

### Output ports

* __joined__: 
    ```
    (
      {string: ({string: any} or any[])[string]}
      or {string: ({string: any} or any[])[number]}
    )
    ```

    Sends the resulting joined dictionary.<br>
    <br>
    Example:<br>
    {"first": 1,"third": 3}<br>

Last updated