• Documentation
  • Playground
  • Templates
  • Releases
InstallationConfigurationEdge ChannelMigration
Content DirectoryMarkdownJSON, YAML, CSVRender ContentSearchFetch NavigationTypeScript Support
queryContent()fetchContentNavigation()useContentHead()useContentHelpers()useUnwrap()searchContent()
<ContentDoc><ContentRenderer><ContentList><ContentNavigation><ContentQuery><ContentSlot>Prose Components
IntroductionuseContent()
HooksTransformersSitemap
Composables

queryContent()

The queryContent composable provides methods for querying and fetching your contents.


TypeScript Support

Nuxt Content v2 is built with TypeScript in mind.

fetchContentNavigation()

The fetchContentNavigation utility returns a tree of items based on the content/ directory structure and files.

  • Important ⚠️
  • Query builder
  • where(query)
  • sort(options)
  • limit(count)
  • skip(count)
  • without(keys)
  • only(keys)
  • find()
  • findOne()
  • findSurround(path, options)
  • count()

Community

Edit this page Star on GitHub Chat on Discord Become a Sponsor Nuxt docs

Ecosystem

Nuxt Studio
  • Documentation
  • Playground
  • Templates
  • Releases
Published under MIT License