Skip to content

Commit

Permalink
commit to re-trigger checks
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines authored Mar 23, 2023
1 parent c35acc8 commit 07759f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/cli/graphql/data-modeling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ try {

### Configure a primary key

Every GraphQL type with the `@model` directive will automatically have an `id` field set as the primary key. You can override this behavior by marking another required field with the `@primaryKey` directive.
Every GraphQL type with the `@model` directive will automatically have an `id` field set as the primary key. You can override this behavior by marking another required field with the `@primaryKey` directive.

In the example below, `todoId` is the database's primary key and an `id` field will no longer be created automatically anymore by the `@model` directive.
```graphql
Expand Down

0 comments on commit 07759f5

Please sign in to comment.