Skip to content

Commit

Permalink
Update fields.mdx (#6304)
Browse files Browse the repository at this point in the history
  • Loading branch information
bladey authored Aug 12, 2021
1 parent d534409 commit 27e0d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/docs/apis/fields.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ Read our [relationships guide](../guides/relationships) for details on Keystone

- `ref` (required): A string of the form `<listKey>` or `<listKey>.<fieldPath>`.
- `many` (default: `false`): Configures the cardinality of the relationship.
- `defaultValue` (default: `undefined`): Can be either a relationship input value or an async function which takes an argument `({ context, originalInput })` and returns a relationship input value.
- `defaultValue` (default: `undefined`): Can be either a relationship input value `{ connect: { id: ID } }` or an async function which takes an argument `({ context, originalInput })` and returns a relationship input value.
This value will be used for the field when creating items if no explicit value is set.
`context` is a [`KeystoneContext`](./context) object.
`originalInput` is an object containing the data passed in to the `create` mutation.
Expand Down

1 comment on commit 27e0d19

@vercel
Copy link

@vercel vercel bot commented on 27e0d19 Aug 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.