Problem with dataloader: Ecto.Query.CompileError) binding list should contain only variables or `{as, var}` tuples, got:

i try to collaborate with elixir project, but when i run cmd mix.setup i got this error

== Compilation error in file lib/dataloader/ecto.ex ==
** (Ecto.Query.CompileError) binding list should contain only variables or `{as, var}` tuples, got: ...
    (ecto 3.10.3) expanding macro: Ecto.Query.where/3
    lib/dataloader/ecto.ex:781: Dataloader.Source.Dataloader.Ecto.build_preload_lateral_query/3
    (elixir 1.17.3) expanding macro: Kernel.|>/2
    lib/dataloader/ecto.ex:781: Dataloader.Source.Dataloader.Ecto.build_preload_lateral_query/3

this project was created a year ago, but if i’m create new project and using the same dependencies {:dataloader, “~> 1.0.0”}, its fine i don’t get the error. How i fixed that?

Upgrade Ecto to latest version.

Source: What's the operator ... in Elixir? - #9 by guillaume-lin

1 Like

thanks its work