Skip to content

What is the difference of Data and Params ?, And what is fields and how to utilized fields #2

Description

@okaprinarjaya

Hi @williamthome

  • What is the difference of Data and Params ?
  • What is fields[] and how to utilize it?
  • Why fields always empty list?
  • Why data always empty map?

Valid Input

{changeset,[],
           #{name => binary,starring => binary},
           [name],
           #{},
           #{name => <<"Erlang the movie">>},
           [],
           [undefined,<<>>]}

Invalid Input

{changeset,[],
           #{name => binary,starring => binary},
           [name],
           #{},#{},
           [{name,{<<"is required">>,#{validation => is_required}}}],
           [undefined,<<>>]}

Both Valid and Invalid input always returning empty list [] for fields parameter, and empty map #{} in data parameter.

Thank you 🙏

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions