实现 array string (e.g. tags) 的方案如下:

  • 或逻辑,即只要有一个 tag 符合即可,使用:overlaps_with,如:files::tags.overlaps_with(tags.clone())
  • 与逻辑,即需要数据拥有全部的 tags, 使用: contains
  • 非逻辑,即排除某些 tag,使用 overlaps_with(tags.clone()).eq(false)