seedfunction
import { seed } from '@mortar-kit/core'
function seed(content: Content, docs: Readonly<Record<string, readonly SeedDoc[]>>): Promise<SeedResult>Saves starter documents into every collection of docs that has none
yet, in the order given (so references can point at documents saved
earlier). Collections that already have documents are left alone, so it
is safe to call on every start. Throws, naming the document and its
problems, if one doesn't validate.
Parameters
Returns
Promise<SeedResult>
Example
await seed(content, {
pages: [{ id: 'home', slug: 'home', fields: { title: 'Welcome' }, entries: [] }],
});