Dataview plugin snippet showcase

Hey everyone - gradually getting up to speed with Obsidian and generally very excited about the possibilities that Dataview can bring.

I’m having some issues though with what I think should be a fairly basic use case. Basically I’m trying to avoid putting tags in the body of my content and placing them in the YAML instead.

Here’s what I’ve got so far (for book notes)

YAML:

---
source: Ego Is the Enemy
author: Ryan Holiday
tags: [highlights]
---

Dataview:

```dataview
table source, author
where contains(file.tags, "highlights")
```

Unfortunately though, Dataview isn’t finding anything. Can anyone point out what I’m doing wrong?

And as a secondary question, how I would need to amend my contains() function to match more than one tag?

Thanks hugely in advance!