AshDispatch.Extensions.AddUserRelationship.Transformer (AshDispatch v0.5.0)
View SourceTransformer that conditionally adds a user belongs_to relationship to the resource.
This replaces the :user calculation with a proper relationship so AshTypescript
can load nested fields.
The transformer only creates the relationship if the configured user_resource module exists at compile time. This avoids warnings when ash_dispatch compiles standalone.
Summary
Functions
Callback implementation for Spark.Dsl.Transformer.after?/1.
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.
Callback implementation for Spark.Dsl.Transformer.transform/1.
Functions
Callback implementation for Spark.Dsl.Transformer.after?/1.
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.
Callback implementation for Spark.Dsl.Transformer.transform/1.