Skip to content

Commit

Permalink
Introduce Key Directive
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Apr 11, 2024
1 parent 5591cc1 commit 8aa502e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/Section 2 -- Source Schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ extend type Review {
- `coordinate`: Represents a schema coordinate that refers to a type system
member.

### @key

The `@key` directive designates an object type as an entity and specifies its key fields (a set of fields that the _source schema_ can use to uniquely identify any instance of the entity).

```graphql
directive @key(fields: FieldSet!) repeatable on OBJECT | INTERFACE
```

### @shareable

```graphql
Expand Down

0 comments on commit 8aa502e

Please sign in to comment.