Skip to content

Instantly share code, notes, and snippets.

@moo2u2
Last active October 7, 2023 03:12
Patching out the standard field filter and adding the security fields
<configuration>
<sitecore xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<api>
<GraphQL>
<defaults>
<content>
<schemaProviders>
<edgeContent type="Sitecore.Services.GraphQL.EdgeSchema.EdgeSchemaProvider, Sitecore.Services.GraphQL.EdgeSchema">
<templates type="Sitecore.Services.GraphQL.Content.TemplateGeneration.Filters.StandardTemplatePredicate, Sitecore.Services.GraphQL.Content">
<paths>
<patch:delete/>
</paths>
<paths hint="list:AddIncludedPath">
<forms>/sitecore/templates/Forms</forms>
<sxaNav>/sitecore/templates/Feature/Experience Accelerator/Navigation/Datasource</sxaNav>
<sxaRedirects>/sitecore/templates/Feature/Experience Accelerator/Redirects</sxaRedirects>
<sxa>/sitecore/templates/Headless Experience Accelerator</sxa>
<foundation1>/sitecore/templates/Foundation/Foundation1</foundation1>
<feature1>/sitecore/templates/Feature/Feature1</feature1>
<project>/sitecore/templates/Project</project>
<security>/sitecore/templates/System/Templates/Security</security>
</paths>
<fieldFilter type="Sitecore.Services.GraphQL.Content.TemplateGeneration.Filters.StandardFieldFilter, Sitecore.Services.GraphQL.Content">
<patch:delete />
</fieldFilter>
</templates>
</edgeContent>
</schemaProviders>
</content>
</defaults>
</GraphQL>
</api>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment