diff --git a/docs/database/indexes.mdx b/docs/database/indexes.mdx index 359a0290ad7..ba1e5842e15 100644 --- a/docs/database/indexes.mdx +++ b/docs/database/indexes.mdx @@ -15,7 +15,7 @@ To index a field, set the `index` option to `true` in your field's config: ```ts import type { CollectionConfig } from 'payload' -export MyCollection: CollectionConfig = { +export const MyCollection: CollectionConfig = { // ... fields: [ // ...