Skip to content

Instantly share code, notes, and snippets.

@mazz
Created January 30, 2019 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazz/2ee5c2997be61f92c978dc96905e68fd to your computer and use it in GitHub Desktop.
Save mazz/2ee5c2997be61f92c978dc96905e68fd to your computer and use it in GitHub Desktop.
Ecto.Query.from(fer in Transfer,
join: tn in Transaction,
where: fer.transaction_id == tn.id,
order_by: tn.absolute_id,
select: %{title: tn.basename, localizedTitle: fer.localizedname, uuid: tn.uuid, languageId: fer.language_id})
|> Repo.all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment