With SEOmatic I want to be able to dynamically change the type of my mainEntity, which defaults to "Webpage" and in some cases I want to change it to "Event"
In an older project I did this:
{% do seomatic.jsonLd.get('mainEntityOfPage').type('Event') %}
But if I dump the mainEntity again, nothing has changed:
{% dd seomatic.jsonLd.get('mainEntityOfPage') %}
It's still a nystudio107\seomatic\models\jsonld\WebPage#1
How can I achieve this?
I'm using Craft 3.4.30 with Seomatic 3.3.35