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:
productsCsvPath is provided, uses Importer to populate Product data.Example
Parameters
() => Promise<T | undefined>string | objectstringstring | import('@vendure/core').Channel