dwyl / dwyl/fields

How to Simplify Preparing Data?

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Elixir
Stars
87
Forks
12
Avg merge
21h 40m
Merged PRs (30d)
2

Description

This is the "pseudo function" I created in: https://github.com/dwyl/phoenix-ecto-encryption-example
```elixir
defp prepare_fields(changeset, schema) do
User.__schema__(:fields)
# |> IO.inspect
|> Enum.each(fn field ->
IO.inspect field, label: field
User.__schema__(:type, field)
|> IO.inspect
end)
#
# IO.inspect changeset, lable: "changeset"
end
```
My plan is to _expand_ it here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.