# GraphQL @primaryKey Transformer

# Reference Documentation

### @primaryKey

The `@primaryKey` directive allows you to define the primary key for your relational data.

#### Definition

```graphql
directive @primaryKey(sortKeyFields: [String]) on FIELD_DEFINITION
```
