# pub.chive.graph.listEdges

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.graph.listEdges)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.graph.listEdges/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.graph.listEdges/examples)

## Definitions

### `pub.chive.graph.listEdges`

**Type**: `query`

List knowledge graph edges with optional filtering

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum results to return |
| `cursor` | `string` | No | Pagination cursor |
| `status` | `string` | No | Filter by lifecycle status |
| `sourceUri` | `string` (at-uri) | No | Filter by source node AT-URI |
| `targetUri` | `string` (at-uri) | No | Filter by target node AT-URI |
| `relationSlug` | `string` | No | Filter by relation type slug |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `edges` | `array` | Yes | List of edges |
| `total` | `integer` | Yes | Total count of matching edges |
| `cursor` | `string` | No | Pagination cursor for next page |
| `hasMore` | `boolean` | Yes | Whether more results exist |

## Raw Schema

```json
{
  "id": "pub.chive.graph.listEdges",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "edges",
            "hasMore",
            "total"
          ],
          "properties": {
            "edges": {
              "type": "array",
              "items": {
                "ref": "pub.chive.graph.getEdge#graphEdge",
                "type": "ref"
              },
              "description": "List of edges"
            },
            "total": {
              "type": "integer",
              "description": "Total count of matching edges"
            },
            "cursor": {
              "type": "string",
              "description": "Pagination cursor for next page"
            },
            "hasMore": {
              "type": "boolean",
              "description": "Whether more results exist"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum results to return"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor"
          },
          "status": {
            "type": "string",
            "description": "Filter by lifecycle status",
            "knownValues": [
              "proposed",
              "established",
              "deprecated"
            ]
          },
          "sourceUri": {
            "type": "string",
            "format": "at-uri",
            "description": "Filter by source node AT-URI"
          },
          "targetUri": {
            "type": "string",
            "format": "at-uri",
            "description": "Filter by target node AT-URI"
          },
          "relationSlug": {
            "type": "string",
            "description": "Filter by relation type slug"
          }
        }
      },
      "description": "List knowledge graph edges with optional filtering"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
