# join() function · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.join/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

Several fragments, one after another.

**Signature:**

```typescript
export declare function join(parts: readonly SqlFragment[], separator?: string): SqlFragment;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| parts | readonly [SqlFragment](https://imqueue.org/api/pg-prisma/latest/pg-prisma.sqlfragment/)\[\] | The fragments to join. |
| separator | string | _(Optional)_ What goes between them. Defaults to `, `. |


**Returns:**

[SqlFragment](https://imqueue.org/api/pg-prisma/latest/pg-prisma.sqlfragment/)

One fragment, with its placeholders renumbered in order.

## Example


```typescript
sql`WHERE ${join(matches, ' OR ')}`;
```

