ash v1.28.1 Ash.Resource.Transformers.DefaultPrimaryKey View Source

Creates the default primary key if one applies.

Currently, the only resources that get a default primary key are embedded resources. The reason for this is that resources must have a primary key, and embedded resources actually make sense without one. But this is simulated with a private uuid primary key.

Link to this section Summary

Link to this section Functions

Callback implementation for Ash.Dsl.Transformer.after?/1.

Callback implementation for Ash.Dsl.Transformer.before?/1.

Link to this function

transform(resource, dsl_state)

View Source

Callback implementation for Ash.Dsl.Transformer.transform/2.