Is there an easy way to return all fields, while skipping standard Sitecore fields in GraphQL query results without strongly-typed items?
I know that I can use fields(ownFields:true)
, but it will remove inherited fields from all templates, but I want to skip only standard ones with __
prefix.
I have exclusions of standard field in my configuration, but this removes standard fields only from the schema, but not from query results:
<fieldFilter type="Sitecore.Services.GraphQL.Content.TemplateGeneration.Filters.StandardFieldFilter, Sitecore.Services.GraphQL.Content">
<exclusions hint="raw:AddFilter">
<exclude name="__*" />
</exclusions>
</fieldFilter>