DVJS filter by YAML metadata converting link to string

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I have a folder for contacts (“050 People”). Every contact has inline metadata with their company/entity that appears as:

Entity:: [[CompanyX]]

I’m trying to filter for those contacts that work at Company X, knowing that I’ll likely have to convert the link to a string.

Things I have tried

After searching through the Forum for the past 2 days, the best I’ve come up with is:

---
<%*
const dv = this.app.plugins.plugins["dataview"].api;
let allProjects = dv.pages('"050 People"');
let chosenProjects = allProjects
	.where(p => p.Entity.toString().includes("CompanyX"))
	.file.sort(n => n.name);
let suggestions = chosenProjects.name;
let Entity1 = await tp.system.suggester(suggestions,suggestions)
_%>
---

Any ideas are most welcome !!! Thanks