Skip to main content

Schema mutators

To support Lunar extension of the admin panel, mutators could be registered by developers.

Core concepts

Page schema has stable IDs
Mutators target a page ID (or pattern)

Registry + pipeline

Mutation operations (the API extensions actually use)

You want high-level operations, not “poke arrays”.

Example mutators

Add a “Stock Movements” related table block
Add fields into an existing form section
Add a column + row action to the variants table

How extensions register mutators

How a controller uses the pipeline