Hi to all!
I’m using MongoDB adapter:
{:mongodb_ecto, github: "michalmuskala/mongodb_ecto", branch: "ecto-2.1"}
And I trying to use like/2.
But something is broken and I get the error:
** (Ecto.QueryError) Invalid expression for MongoDB adapter in where clause in query:
from a in MyApp.Airport,
where: like(a.city, "Br%"),
select: a
source code:
query = from a in Airport, where: like(a.city, "Br%")
Repo.all(query)
Any help would be greatly appreciated