We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While documentation says this should be possible, I'm getting query compilation errors here.
iex(1)> import Ecto.Query Ecto.Query iex(2)> from(v in Videos, where: v.visibility == :public) ** (Ecto.Query.CompileError) `:public` is not a valid query expression (ecto 3.3.2) expanding macro: Ecto.Query.where/3 iex:2: (file) (ecto 3.3.2) expanding macro: Ecto.Query.from/2 iex:2: (file)
There are multiple workaround for this, but does anybody have a clue why this happens?
Thank you
The text was updated successfully, but these errors were encountered:
This is not related to ecto_enum. You must pin the value you want to use in from/2.
from/2
Doing the following should work:
iex(1)> import Ecto.Query Ecto.Query iex(2)> from(v in Videos, where: v.visibility == ^:public)
(notice the caret before :public)
:public
Sorry, something went wrong.
Thanks for explanation
No branches or pull requests
While documentation says this should be possible, I'm getting query compilation errors here.
There are multiple workaround for this, but does anybody have a clue why this happens?
Thank you
The text was updated successfully, but these errors were encountered: