magento / magento2-upward-connector

Magento module for routing front-end requests to UPWARD-PHP
Open Software License 3.0
24 stars 27 forks source link

GraphQL Queries not proxied to the backend #16

Closed manishparanjape closed 4 years ago

manishparanjape commented 4 years ago

Upward Connector sets preference for "Magento\Framework\App\FrontControllerInterface" As type="Magento\UpwardConnector\Controller\Upward"

Magento_GraphQl module sets preference for Magento\Framework\App\FrontControllerInterface as type=Magento\GraphQl\Controller\GraphQl when frontName=graphql

For all GraphQL requests, area code is set as "graphql". As a result, graphql queries are not handled by upwards connector.

Adding preference definition for graphql frontName fix this issue.

manishparanjape commented 4 years ago

This works when backend is different Magento instance. Won't work for same backend instance.