close

Filter

loading table of contents...

CoreMedia Content Cloud v12 Upgrade Guide / Version 2404

Table Of Contents

7.10.7 PreparsedDocumentProvider

The execution of persisted queries is now handled as part of a so called PreparsedDocumentProvider. PreparsedDocumentProvider is a Java interface provided by the GraphQL Java library.

Earlier versions of Headless Server created an instance of PreparsedDocumentProvider within CaasConfig. That instance was removed from Blueprint.

Headless Server comes with its own implementation of PreparsedDocumentProvider, which is still handling basic query pre-parsing as well as Apollo persisted queries and server-side named persisted queries.

The PreparsedDocumentProvider is automatically instantiated by a Spring Boot autoconfiguration with the @ConditionalOnMissingBean annotation. Thus, customers may replace the CoreMedia default implementation simply by providing their own implementation of PreparsedDocumentProvider as a regular Spring bean.

If you already use a custom implementation of a PreparsedDocumentProvider, you will overwrite the provided default, thus effectively disable the execution of persisted queries in Headless Server, although the invocation on the GraphQL handler will remain intact.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.