Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4rthem/graphql-mapper-bundle
https://github.com/4rthem/graphql-mapper-bundle
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/4rthem/graphql-mapper-bundle
- Owner: 4rthem
- License: mit
- Created: 2016-01-03T03:31:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-20T19:52:18.000Z (over 8 years ago)
- Last Synced: 2024-04-16T23:53:08.130Z (9 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL Mapper Bundle
Symfony bundle for [GraphQL Mapper](https://github.com/4rthem/graphql-mapper)
## Installation
This is installable via [Composer](https://getcomposer.org/) as [arthem/graphql-mapper-bundle](https://packagist.org/packages/arthem/graphql-mapper-bundle):
```bash
composer require arthem/graphql-mapper-bundle
```## Setup / Configuration
Enable the bundle:
```php
See graphql-mapper [documentation](https://github.com/4rthem/graphql-mapper)Then declare your mapping file in the bundle configuration:
```yaml
# app/config/config.ymlarthem_graphql:
mapping:
files:
- %kernel.root_dir%/config/graphql_schema.yml
```Setup routing:
```yaml
# app/config/routing.yml
arthem_graphql:
resource: "@ArthemGraphQLBundle/Resources/config/routing.yml"
prefix: /graphql
```## Usage
Just call `POST /app_dev.php/graphql/query` with a "query" in the body
## License
Released under the [MIT License](LICENSE).