Ecto “left IN right” query using a fragment
问题 I would like to query a jsonb field using postgres IN operator (with Ecto library) This code work with a simple = operator: from a in query, where: fragment("?->>'format' = ?", a.properties, "foo") But I cannot make any of these attempts to work: from a in query, where: fragment("?->>'format' IN ?", a.properties, ["foo", "bar"]) from a in query, where: fragment("?->>'format' IN (?)", a.properties, ["foo", "bar"]) from a in query, where: fragment("?->>'format' IN ?", a.properties, "('foo',