# club.userstyles.alpha.graph.getRelationships

> Published by [userstyles.club](https://lexicon.garden/identity/did:plc:z6a2tfjek74wmqinw5vjzbed)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.graph.getRelationships)
- [Documentation](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.graph.getRelationships/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.graph.getRelationships/examples)

## Definitions

### `club.userstyles.alpha.graph.getRelationships`

**Type**: `query`

Batch variant of getRelationship: check the follow relationship between `actor` and each of `others`.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | Yes |  |
| `others` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `relationships` | `array` | Yes |  |

#### Errors

- **ActorNotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Batch variant of getRelationship: check the follow relationship between `actor` and each of `others`.",
      "errors": [
        {
          "name": "ActorNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "relationships": {
              "items": {
                "ref": "club.userstyles.alpha.defs#relationshipView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "relationships"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "at-identifier",
            "type": "string"
          },
          "others": {
            "items": {
              "format": "at-identifier",
              "type": "string"
            },
            "maxLength": 25,
            "type": "array"
          }
        },
        "required": [
          "actor",
          "others"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "club.userstyles.alpha.graph.getRelationships",
  "lexicon": 1
}
```
