# and

## Call Signature

> **and**\<`E`\>(`expressions`): [`Expression`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/expression/)\<[`RefsOf`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/refsof/)\<`E`\[`number`\]\>\>

Defined in: [src/query/expression.ts:506](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/d464c8dce16c3b8c472479ac5aae9d14344eb067/src/query/expression.ts#L506)

All of these must hold.

A single expression is returned unwrapped, so building a conjunction from a filtered list does
not litter the query with redundant nesting.

### Type Parameters

#### E

`E` *extends* readonly [`Expression`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/expression/)\<[`AttributeRef`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/attributeref/)\>[]

### Parameters

#### expressions

`E`

The expressions, as separate arguments or one array.

### Returns

[`Expression`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/expression/)\<[`RefsOf`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/refsof/)\<`E`\[`number`\]\>\>

### Throws

If given nothing to combine.

### Example

```ts
and(gte("level", i32(10)), eq("status", "open"))
and(filters) // an array works too
```

## Call Signature

> **and**\<`E`\>(...`expressions`): [`Expression`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/expression/)\<[`RefsOf`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/refsof/)\<`E`\[`number`\]\>\>

Defined in: [src/query/expression.ts:509](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/d464c8dce16c3b8c472479ac5aae9d14344eb067/src/query/expression.ts#L509)

All of these must hold.

A single expression is returned unwrapped, so building a conjunction from a filtered list does
not litter the query with redundant nesting.

### Type Parameters

#### E

`E` *extends* readonly [`Expression`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/expression/)\<[`AttributeRef`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/attributeref/)\>[]

### Parameters

#### expressions

...`E`

The expressions, as separate arguments or one array.

### Returns

[`Expression`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/expression/)\<[`RefsOf`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/refsof/)\<`E`\[`number`\]\>\>

### Throws

If given nothing to combine.

### Example

```ts
and(gte("level", i32(10)), eq("status", "open"))
and(filters) // an array works too
```