# sm.pipeGraph.getMatchingPipedContainers

Returns the containers of all chests connected to the given shape through the pipe connections. Will only return containers from shapes of the same type as the original.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.pipeGraph.getMatchingPipedContainers( originInteractable )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.pipeGraph.md#getmatchingpipedcontainers)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `originInteractable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The interactable where the search will start from. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `containers` | table | The container of the originInteractable as well as those of the same type connected through pipes. |
