# so.sprk.graph.defs

> Published by [sprk.so](https://lexicon.garden/identity/did:plc:cveom2iroj3mt747sd4qqnr2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.graph.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.graph.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.graph.defs/examples)

## Definitions

### `so.sprk.graph.defs#relationship`

**Type**: `object`

lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `following` | `string` (at-uri) | No | if the actor follows this DID, this is the AT-URI of the follow record |
| `followedBy` | `string` (at-uri) | No | if the actor is followed by this DID, contains the AT-URI of the follow record |

### `so.sprk.graph.defs#notFoundActor`

**Type**: `object`

indicates that a handle or DID could not be resolved

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | Yes |  |
| `notFound` | `boolean` | Yes |  |

## Raw Schema

```json
{
  "id": "so.sprk.graph.defs",
  "defs": {
    "relationship": {
      "type": "object",
      "required": [
        "did"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "following": {
          "type": "string",
          "format": "at-uri",
          "description": "if the actor follows this DID, this is the AT-URI of the follow record"
        },
        "followedBy": {
          "type": "string",
          "format": "at-uri",
          "description": "if the actor is followed by this DID, contains the AT-URI of the follow record"
        }
      },
      "description": "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)"
    },
    "notFoundActor": {
      "type": "object",
      "required": [
        "actor",
        "notFound"
      ],
      "properties": {
        "actor": {
          "type": "string",
          "format": "at-identifier"
        },
        "notFound": {
          "type": "boolean",
          "const": true
        }
      },
      "description": "indicates that a handle or DID could not be resolved"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
