View Source AppGen.InputArguments.RelationInputs (app_gen v0.1.1)
This module takes in relations in the format of
- :relation
- [relation: :sub_relation]
- [relation: [required: [:field_a, :field_b], blacklist_non_required?: true]]
- [:relation_one, :relation_two]
- [:relation_one, relation_two: [:relation_three, :relation_four]]
- [:relation_one, relation_two: {[required: [:field_a, :field_b], blacklist_non_required?: true], [:relation_three, relation_four]}]
Using these arguments it modifies types to create input types for the relations specified with the args for that relation
Supported arguments for the relations include required, blacklist and blacklist_non_required?
Link to this section Summary
Link to this section Functions
Link to this function
add_input_type_to_parent(type_object_structs, type_name, ecto_schema, relation_name)
View Source
Link to this function