EctoJsonapi v0.4.0 EctoJsonapi View Source

Link to this section Summary

Link to this section Functions

Link to this function

attributes(schema, attributes) View Source
attributes(Ecto.Schema, [atom()]) :: map()

Return the selected attributes

This function also:

  • Returns all the keys as strings
  • Converts any underscores (_) in the keys to dashes (-).

See EctoJsonapi.Dump.dump/1.

See EctoJsonapi.Load.load/1.

See EctoJsonapi.Load.load/2.