7
match_history
フィールドに特定の文字列要素を持たないすべてのUser
を検索しようとしています。私はこれを推測しました:エリクサー+エクトー:どのように[アレイ]にはありませんか?
matched_user = User |> where([u], ^device_id not in u.match_history) |> limit(1) |> VideoChat.Repo.one
しかし、not
部分で破断するようです。これを行う方法はありますか?