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<T extends INestApplicationContext>(bootstrapFn: () => Promise<T | undefined>, initialDataPathOrObject: string | object, productsCsvPath?: string): Promise<T>

Parameters

bootstrapFn

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

initialDataPathOrObject

parameter
type:
string | object

productsCsvPath

parameter
type:
string