https://github.com/janit/graphqlstarwarsezplatformbundle
eZ Platform schema for GraphQL Star Wars example
https://github.com/janit/graphqlstarwarsezplatformbundle
Last synced: about 2 months ago
JSON representation
eZ Platform schema for GraphQL Star Wars example
- Host: GitHub
- URL: https://github.com/janit/graphqlstarwarsezplatformbundle
- Owner: janit
- Created: 2016-05-29T09:38:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-29T09:42:48.000Z (about 10 years ago)
- Last Synced: 2025-02-24T03:37:23.453Z (over 1 year ago)
- Language: PHP
- Homepage: https://www.symfony.fi/entry/import-the-facebook-graphql-example-data-model-to-ez-platform
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eZ Platform schema for GraphQL Star Wars example
This is an example of data used by the Kaliop eZ Migrations Bundle for eZ Platform (and eZ Publish 5.x).
## Installation
First install the [eZ Migrations Bundle](https://github.com/kaliop-uk/ezmigrationbundle/) and then clone
this bundle to your src directory and enable the bundle in your application kernel:
public function registerBundles()
{
$bundles = array(
... more stuff here ...
new GraphQLStarwarsEzPlatformBundle\GraphQLStarwarsEzPlatformBundle(),
);
}
Once you have this installed, then you can use the kaliop migrations to execute the migration:
php app/console kaliop:migration:update
Once this is complete, then you should have content objects in your database that corresponds to
to the examples that are used by the [GraphQL examples](https://github.com/graphql/graphql-js).
This bundle does not expose a GraphQL interface to the created data, but just contains the data
structure itself. This can be implemented in the future using the groundwork available for
[Symfony and GraphQL](https://www.symfony.fi/entry/graphql-with-php-and-the-symfony-framework).