Error: [function at(..)] unexpected field 'my.game.teamLink.uid'

I'm following the documentation and I'm getting an error when trying to filter games down to games with a certain team. The teamLink is a relationship field. I see it in the console.

const games = await client.get({
    predicates: [
      prismic.predicate.at("document.type", "game"),
      prismic.predicate.at("my.game.teamLink.uid", params.uid),
    ],
  });

Please help as I would like to use Prismic slices for my clients. thanks.

Hi @diggz50

Thanks for reaching out.

Can you please also add the error you get as well as your repository name (you can share it in a private message if necessarily)