I have a simple question… but i am having trouble wrapping my head around it:
I have a simple query like:
query = from(a in "artists", select: a.id, where: is_nil(a.bit_id) ) Repo.all(query)
i realy want back an array of structs, rather than a set of ids… but i can’t seen to word my query correctly. If take the select out, i get:
queries that do not have a schema need to explicitly pass a :select clause in query:
Any ideas on how I should be doing this?