Skip to main content

Populator

Responsible for populating the database with InitialData, i.e. non-product data such as countries, tax rates, shipping methods, payment methods & roles.

Signature

populateInitialData

method(data: InitialData, channel?: Channel) =>

Should be run before populating the products, so that there are TaxRates by which product prices can be set. If the channel argument is set, then any ChannelAwareentities will be assigned to that Channel.

populateCollections

method(data: InitialData, channel?: Channel) =>

Should be run after the products have been populated, otherwise the expected FacetValues will not yet exist.

Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page