const { data: home } = await useAsyncData('leeds', () => queryCollection('uniofleeds').first())
Argument of type '"uniofleeds"' is not assignable to parameter of type '"content"'.
import { defineContentConfig, defineCollection } from '@nuxt/content'
import { z } from 'zod'
export default defineContentConfig({
collections: {
content: defineCollection({
type: 'page',
source: '/*.md'
}),
uniofleeds: defineCollection({
type: "data",
schema: z.object({
university: z.string(),
modules: z.array(
z.object({
name: z.string(),
questions: z.array(
z.object({
question: z.string(),
answers: z.tuple([
z.string(),
z.string(),
z.string(),
z.string()
])
})
)
})
)
}),
source: '/uniofleeds.json'
})
}
})
import { defineContentConfig, defineCollection } from '@nuxt/content'
import { z } from 'zod'
export default defineContentConfig({
collections: {
content: defineCollection({
type: 'page',
source: '/*.md'
}),
uniofleeds: defineCollection({
type: "data",
schema: z.object({
university: z.string(),
modules: z.array(
z.object({
name: z.string(),
questions: z.array(
z.object({
question: z.string(),
answers: z.tuple([
z.string(),
z.string(),
z.string(),
z.string()
])
})
)
})
)
}),
source: '/uniofleeds.json'
})
}
})
