Download the PHP package bdunogier/ezplatform-graphql-bundle without Composer
On this page you can find all versions of the php package bdunogier/ezplatform-graphql-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bdunogier/ezplatform-graphql-bundle
More information about bdunogier/ezplatform-graphql-bundle
Files in bdunogier/ezplatform-graphql-bundle
Package ezplatform-graphql-bundle
Short Description GraphQL server for the eZ Platform Open Source CMS Repository.
License MIT
Informations about the package ezplatform-graphql-bundle
eZ Platform GraphQL Bundle
This Symfony bundle adds a GraphQL server to eZ Platform, the Open Source CMS. It exposes two endpoints.
The domain schema: /graphql
https://<host>/graphql
A graph of the repository's domain. It exposes the domain modelled using the repository, based on content types groups, content types and fields definitions. Use it to implement apps or sites dedicated to a given repository structure.
Example: an eZ Platform site.
Warning: this feature requires extra configuration steps. See the Domain Schema documentation.
The repository schema: /graphql/repository
https://<host>/graphql/repository
A graph of the repository's Public API. It exposes value objects from the repository: content, location, field, url alias... It is recommended for admin like applications, not limited to a particular repository.
Example: an eZ Platform Admin UI extension.
Repository schema documentation
Installation
Install the package and its dependencies using composer:
Add the bundles to app/AppKernel.php
(pay attention to the order, it is important):
Add the GraphQL routing configuration to app/config/routing.yml
:
Generate your schema
Run the command that generates the GraphQL schema:
It will generate a lot of yaml files in app/config/graphql/ezplatform
, based on your content types.
GraphiQL
The graphical graphQL client, GraphiQL, must be installed separately if you want to use it. As a developer, you probably want to.
Add OverblogGraphiQLBundle
to the dev
bundles:
Add the GraphiQL route to app/config/routing_dev.yml
:
Open http://<yourhost>/graphiql
.