AshScenario.Scenario.Executor.StructStrategy (ash_scenario v0.6.0)

View Source

Execution strategy for creating structs without database persistence.

This strategy builds structs directly without using Ash.create, suitable for generating test data that doesn't need to be persisted.

Summary

Functions

resolve_attributes(attributes, resource_module, created_structs)

Custom attribute resolution for struct mode.

In struct mode, we keep relationship references as structs instead of extracting IDs like the database strategy does.