Skip to content

2.0.0-rc1

Pre-release
Pre-release

Choose a tag to compare

@jroszkiewicz jroszkiewicz released this 03 Dec 11:46
· 148 commits to master since this release

We added support for multiple graphql endpoints, so this version has a bc, because you have to change config (see config-template for more information).

Config before

graphqlite:
  namespaces:
    controllers: App\Api\Controller\Warehouse
    types:
      - App\Api\Types\Warehouse
      - App\Api\Enum\Warehouse
      - App\Entity

Example config now (with default namespace and extra one)

graphqlite:
  namespaces:
    default:
      controllers: App\Api\Controller\Warehouse
      types:
        - App\Api\Types\Warehouse
        - App\Api\Enum\Warehouse
        - App\Entity
    shop:
      controllers: App\Api\Controller\Shop
      types:
        - App\Api\Types\Shop
        - App\Api\Enum\Shop

If you want to execute service with another namespace you have to call route with optional parameter.

For example "/graphql/shop"

For more information run bin/console debug:router