Querying Nuxt Content
Instead of using <ContentDoc>
, you can also query the content you need.
const { data } = await useAsyncData(
'posts',
() => queryContent('/posts').find()
)
Instead of using <ContentDoc>
, you can also query the content you need.
const { data } = await useAsyncData(
'posts',
() => queryContent('/posts').find()
)