# games.gamesgamesgamesgames.graph.getLikes

> Published by [gamesgamesgamesgames.games](https://lexicon.garden/identity/did:web:gamesgamesgamesgames.games)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.graph.getLikes)
- [Documentation](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.graph.getLikes/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.graph.getLikes/examples)

## Definitions

### `games.gamesgamesgamesgames.graph.getLikes`

**Type**: `query`

Get the like count for a game and whether the authenticated user has liked it.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT URI of the game record. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes | Total number of likes on this game. |
| `liked` | `boolean` | Yes | Whether the authenticated user has liked this game. |

## Raw Schema

```json
{
  "id": "games.gamesgamesgamesgames.graph.getLikes",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "count",
            "liked"
          ],
          "properties": {
            "count": {
              "type": "integer",
              "description": "Total number of likes on this game."
            },
            "liked": {
              "type": "boolean",
              "description": "Whether the authenticated user has liked this game."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT URI of the game record."
          }
        }
      },
      "description": "Get the like count for a game and whether the authenticated user has liked it."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
