Skip to content

Commit ac085cd

Browse files
authored
docs: fix typo in Collection Config docs (collection → collections) (#16183)
### What? Fix incorrect property name in documentation for defining a Collection Config. ### Why? The documentation incorrectly referenced `collection` instead of the correct `collections` property in the Payload Config. This could mislead users and cause configuration errors. ### How? Updated the documentation to replace `collection` with `collections` in the relevant section. ### Before ```ts collection: [...] ``` ### After ```ts collections: [...] ``` Fixes # (N/A)
1 parent 5af591c commit ac085cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/configuration/collections.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Collections are also used to achieve [Authentication](../authentication/overview
1212

1313
Collections are the primary way to structure recurring data in your application, such as users, products, pages, posts, and other types of content that you might want to manage. Each Collection can have its own unique [Access Control](../access-control/overview), [Hooks](../hooks/overview), [Admin Options](#admin-options), and more.
1414

15-
To define a Collection Config, use the `collection` property in your [Payload Config](./overview):
15+
To define a Collection Config, use the `collections` property in your [Payload Config](./overview):
1616

1717
```ts
1818
import { buildConfig } from 'payload'

0 commit comments

Comments
 (0)