# pub.chive.collection.findContainsEdge

> 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.collection.findContainsEdge)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.collection.findContainsEdge/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.collection.findContainsEdge/examples)

## Definitions

### `pub.chive.collection.findContainsEdge`

**Type**: `query`

Find the CONTAINS edge between a collection and an item

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `itemUri` | `string` | Yes | AT-URI of the item to find |
| `collectionUri` | `string` | Yes | AT-URI of the collection |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `found` | `boolean` | Yes | Whether the edge was found |
| `edgeUri` | `string` | No | AT-URI of the CONTAINS edge |
| `cosmikCardUri` | `string` | No | AT-URI of the Cosmik card for this item |
| `cosmikItemUrl` | `string` | No | URL key in cosmikItems metadata |
| `cosmikLinkUri` | `string` | No | AT-URI of the Cosmik collection link for this item |
| `parentCollectionUri` | `string` | No | AT-URI of the parent collection (for walking up) |

## Raw Schema

```json
{
  "id": "pub.chive.collection.findContainsEdge",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "found"
          ],
          "properties": {
            "found": {
              "type": "boolean",
              "description": "Whether the edge was found"
            },
            "edgeUri": {
              "type": "string",
              "description": "AT-URI of the CONTAINS edge"
            },
            "cosmikCardUri": {
              "type": "string",
              "description": "AT-URI of the Cosmik card for this item"
            },
            "cosmikItemUrl": {
              "type": "string",
              "description": "URL key in cosmikItems metadata"
            },
            "cosmikLinkUri": {
              "type": "string",
              "description": "AT-URI of the Cosmik collection link for this item"
            },
            "parentCollectionUri": {
              "type": "string",
              "description": "AT-URI of the parent collection (for walking up)"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "collectionUri",
          "itemUri"
        ],
        "properties": {
          "itemUri": {
            "type": "string",
            "description": "AT-URI of the item to find"
          },
          "collectionUri": {
            "type": "string",
            "description": "AT-URI of the collection"
          }
        }
      },
      "description": "Find the CONTAINS edge between a collection and an item"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
