This plugin provides a GraphiQL UI for exploring and testing the Vendure GraphQL APIs.
It adds routes /graphiql/admin and /graphiql/shop which serve the GraphiQL interface
for the respective APIs. The route option changes the graphiql prefix.
The GraphiQL page sends its requests to the Admin API and Shop API paths of your Vendure
configuration (apiOptions.adminApiPath and apiOptions.shopApiPath), relative to the
server that served the page. apiOptions.hostname is not used, so the page works behind
a proxy or in a container that listens on 0.0.0.0.
You can add the following query parameters to the GraphiQL URL:
?query=... - Pre-populate the query editor with a GraphQL query.?embeddedMode=true - This renders the editor in embedded mode, which hides the header and
the API switcher. This is useful for embedding GraphiQL in other applications such as documentation.
In this mode, the editor also does not persist changes across reloads.Required<GraphiqlPluginOptions>(options: GraphiqlPluginOptions = {}) => Type<GraphiqlPlugin>(consumer: MiddlewareConsumer) =>