cannot use ^xxx outside of match clauses This is most usually a sign that you haven't imported appropriate macros from Ecto.Query.