Populates the Vendure server with some initial data and (optionally) product data from a supplied CSV file. The format of the CSV file is described in the section Importing Product Data.
If the channelOrToken argument is provided, all ChannelAware entities (Products, ProductVariants,
Assets, ShippingMethods, PaymentMethods etc.) will be assigned to the specified Channel.
The argument can be either a Channel object or a valid channel token.
Internally the populate() function does the following:
Example
Parameters
() => Promise<T | undefined>string | objectstringstring | import('@vendure/core').ChannelArchitecture reviews, custom plugin work, migrations, ongoing support. Get a hand from the team that builds Vendure.
productsCsvPath is provided, uses Importer to populate Product data.