# Queries / Classifications

# Classifications

**Query**
## brand — Returns [Brand](/documentation/Objects/Classifications#Brand)

**Scopes required:** see_classifications

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the brand to get |

**Example Query**

```graphql
query GetBrand($id: ID!) {
    brand(id: $id) {
        id,
        name,
        parent,
        deleted,
        mdbId
    }
}

# Example variables
{
    "id": "<ID>"
}
```

**Query**
## brands — Returns [ConnectionType](/documentation/General/Connections) of [Brand](/documentation/Objects/Classifications#Brand)

**Scopes required:** see_classifications

### Sortable Fields
*Fields from [Brand](/documentation/Objects/Classifications#Brand) that can be used to sort the connection items*

- name

| Arguments | Type | Description |
| --- | --- | --- |
| name | *String* | The name of the brand to search for |

**Example Query**

```graphql
query GetBrands($name: String) {
    brands(name: $name) {
        edges {
            node {
                id,
                name,
                parent,
                deleted,
                mdbId
            }
        },
        pageInfo {
            hasNextPage,
            endCursor
        }
    }
}

# Example variables
{
    "name": "<NAME>"
}
```

**Query**
## categories — Returns [ConnectionType](/documentation/General/Connections) of [Category](/documentation/Objects/Classifications#Category)

**Scopes required:** see_classifications

### Sortable Fields
*Fields from [Category](/documentation/Objects/Classifications#Category) that can be used to sort the connection items*

- name

| Arguments | Type | Description |
| --- | --- | --- |
| name | *String* | The name of the category to search for |

**Example Query**

```graphql
query GetCategories($name: String) {
    categories(name: $name) {
        edges {
            node {
                id,
                name,
                parent,
                deleted,
                mdbId
            }
        },
        pageInfo {
            hasNextPage,
            endCursor
        }
    }
}

# Example variables
{
    "name": "<NAME>"
}
```

**Query**
## category — Returns [Category](/documentation/Objects/Classifications#Category)

**Scopes required:** see_classifications

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the category to get |

**Example Query**

```graphql
query GetCategory($id: ID!) {
    category(id: $id) {
        id,
        name,
        parent,
        deleted,
        mdbId
    }
}

# Example variables
{
    "id": "<ID>"
}
```

**Query**
## families — Returns [ConnectionType](/documentation/General/Connections) of [Family](/documentation/Objects/Classifications#Family)

**Scopes required:** see_classifications

### Sortable Fields
*Fields from [Family](/documentation/Objects/Classifications#Family) that can be used to sort the connection items*

- name

| Arguments | Type | Description |
| --- | --- | --- |
| name | *String* | The name of the family to search for |

**Example Query**

```graphql
query GetFamilies($name: String) {
    families(name: $name) {
        edges {
            node {
                id,
                name,
                parent,
                deleted,
                mdbId
            }
        },
        pageInfo {
            hasNextPage,
            endCursor
        }
    }
}

# Example variables
{
    "name": "<NAME>"
}
```

**Query**
## family — Returns [Family](/documentation/Objects/Classifications#Family)

**Scopes required:** see_classifications

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the family to get |

**Example Query**

```graphql
query GetFamily($id: ID!) {
    family(id: $id) {
        id,
        name,
        parent,
        deleted,
        mdbId
    }
}

# Example variables
{
    "id": "<ID>"
}
```

**Query**
## tag — Returns [Tag](/documentation/Objects/Classifications#Tag)

**Scopes required:** see_classifications

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the tag to get |

**Example Query**

```graphql
query GetTag($id: ID!) {
    tag(id: $id) {
        id,
        name,
        parent,
        deleted,
        mdbId
    }
}

# Example variables
{
    "id": "<ID>"
}
```

**Query**
## tags — Returns [ConnectionType](/documentation/General/Connections) of [Tag](/documentation/Objects/Classifications#Tag)

**Scopes required:** see_classifications

### Sortable Fields
*Fields from [Tag](/documentation/Objects/Classifications#Tag) that can be used to sort the connection items*

- name

| Arguments | Type | Description |
| --- | --- | --- |
| name | *String* | The name of the tag to search for |

**Example Query**

```graphql
query GetTags($name: String) {
    tags(name: $name) {
        edges {
            node {
                id,
                name,
                parent,
                deleted,
                mdbId
            }
        },
        pageInfo {
            hasNextPage,
            endCursor
        }
    }
}

# Example variables
{
    "name": "<NAME>"
}
```

**Query**
## searchClassifications — Returns [[ClassificationSearchInterface]](/documentation/Interfaces/Classification-Search-Interface#ClassificationSearchInterface)

**Scopes required:** see_classifications

Search through all classifications (brand, category, family and tag)

| Arguments | Type | Description |
| --- | --- | --- |
| search | *String!* | The name of the classifications to search for |

**Example Query**

```graphql
query SearchClassifications($search: String!) {
    searchClassifications(search: $search) {
        id
    }
}

# Example variables
{
    "search": "<SEARCH>"
}
```