Populate

populate

populate

Package: @vendure/core File: populate.ts

Populates the Vendure server with some initial data and (optionally) product data from a supplied CSV file.

Signature

function populate(bootstrapFn: () => Promise<INestApplication | undefined>, initialDataPathOrObject: string | object, productsCsvPath?: string): Promise<INestApplication>

Parameters

bootstrapFn

parameter
type:
() => Promise<INestApplication | undefined>

initialDataPathOrObject

parameter
type:
string | object

productsCsvPath

parameter
type:
string