Skip to content

Commit

Permalink
edit: defineCollection -> defineCollection()
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Jan 10, 2023
1 parent ca3d266 commit 8c20e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/en/guides/content-collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ To configure schemas, create a `src/content/config.ts` file (`.js` and `.mjs` ex
2. Export a single `collections` object, with each object key corresponding to the collection's folder name.

:::tip
Run `astro dev`, `astro build`, or `astro sync` before using the `astro:content` module. These commands will generate types for utilities like `defineCollection`.
Run `astro dev`, `astro build`, or `astro sync` before using the `astro:content` module. These commands will generate types for utilities like `defineCollection()`.
:::

For example, say you maintain two collections: one for release announcements and one for blog content. Your entries at `src/content/releases/` should include a `title` and `version`. Your `src/content/engineering-blog/` collection entries should have a `title`, list of `tags`, and an optional `image` URL.
Expand Down

0 comments on commit 8c20e2b

Please sign in to comment.