> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/miscellaneous/llms.txt)
> Source: https://docs.saleor.io/api-reference/miscellaneous/inputs/metadata-filter-input

# MetadataFilterInput Input Type

Allows filtering based on metadata key/value pairs.

Examples:

-   `{key: "size"}` Matches objects where the metadata key "size" exists, regardless of its value.
-   `{key: "color", value: {oneOf: ["blue", "green"]}}` Matches objects where the metadata key "color" is set to either "blue" or "green".
-   `{key: "status", value: {eq: "active"}}` Matches objects where the metadata key "status" is set to "active".

```graphql
input MetadataFilterInput {
  key: String!
  value: MetadataValueFilterInput
}
```

<a id="fields"></a>

### Fields

<a id="key"></a>

#### [`key`](#key) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

Key to filter by. If not other fields provided - checking the existence of the key in metadata.

<a id="value"></a>

#### [`value`](#value) ● [`MetadataValueFilterInput`](/api-reference/miscellaneous/inputs/metadata-value-filter-input.md)

Value to filter by.

<a id="member-of"></a>

### Member Of

[`CustomerOrderWhereInput`](/api-reference/orders/inputs/customer-order-where-input.md) input  ● [`CustomerTypeWhereInput`](/api-reference/users/inputs/customer-type-where-input.md) input  ● [`CustomerWhereInput`](/api-reference/users/inputs/customer-where-input.md) input  ● [`DraftOrderWhereInput`](/api-reference/orders/inputs/draft-order-where-input.md) input  ● [`FulfillmentFilterInput`](/api-reference/orders/inputs/fulfillment-filter-input.md) input  ● [`LinesFilterInput`](/api-reference/orders/inputs/lines-filter-input.md) input  ● [`OrderWhereInput`](/api-reference/orders/inputs/order-where-input.md) input  ● [`PageWhereInput`](/api-reference/pages/inputs/page-where-input.md) input  ● [`TransactionFilterInput`](/api-reference/orders/inputs/transaction-filter-input.md) input
