Skip to content

Instantly share code, notes, and snippets.

@wttj-tech
Created September 12, 2022 14:26
Show Gist options
  • Select an option

  • Save wttj-tech/b8b7e6cd450ba0aee85e283b3777d2bf to your computer and use it in GitHub Desktop.

Select an option

Save wttj-tech/b8b7e6cd450ba0aee85e283b3777d2bf to your computer and use it in GitHub Desktop.
user = Repo.get(User, id)
%User{name: "jane", age: 24, email: "jane@email.com"}
EctoAnon.run(user, Repo)
{:ok, %User{name: "redacted", age: 24, email: "redacted"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment