Populator
Populator
Responsible for populating the database with InitialData, i.e. non-product data such as countries, tax rates, shipping methods, payment methods & roles.
Signature
class Populator {
async populateInitialData(data: InitialData, channel?: Channel) => ;
async populateCollections(data: InitialData, channel?: Channel) => ;
}
Members
populateInitialData
(data: InitialData, channel?: Channel) =>
channel
argument is set, then any ChannelAware
entities will be assigned to that Channel.
populateCollections
(data: InitialData, channel?: Channel) =>