EctoMorph.filter_by_schema_fields
You're seeing just the function
filter_by_schema_fields
, go back to EctoMorph module for more information.
Specs
Returns a map of all of the given schema's fields contained within data. This is not recursive so look at deep_filter_by_schema_fields if you want a recursive version.
Options
filter_not_loaded - This will nillify any Ecto.Association.NotLoaded structs in the map,
setting the value to be nil for any non loaded association.
filter_assocs - This will remove any key from data that is the same as any of the associations
(including embeds) in schema.
iex> data = %{id: 1, other: %Ecto.Association.NotLoaded{}} ...> filter_by_schema_fields(data, MySchema, filter_not_loaded: true) %{id: 1, other: nil} iex> data = %{id: 1, other: %AnotherOne{}} ...> filter_by_schema_fields(data, MySchema) %{id: 1, other: %AnotherOne{}}