Skip to content

Instantly share code, notes, and snippets.

@landongn
Created December 8, 2016 05:47
Show Gist options
  • Save landongn/cdbdea271890a24e1b9d66589fc8e5a1 to your computer and use it in GitHub Desktop.
Save landongn/cdbdea271890a24e1b9d66589fc8e5a1 to your computer and use it in GitHub Desktop.
** (Ecto.QueryError) the binding used in `from` must be selected in `select` when using `preload` in query:
from c in Server.Character,
where: c.player_id == ^...,
select: {c.name, c.id, c.class_id, c.experience, c.gold, c.level, c.weapon_id, c.armor_id, c.health, c.defense},
preload: [:class, :weapon, :armor]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment