2017 © Pedro Peláez
 

symfony-bundle graphql-mapper-bundle

The GraphQL Mapper Symfony Bundle

image

arthem/graphql-mapper-bundle

The GraphQL Mapper Symfony Bundle

  • Friday, May 20, 2016
  • by arthem
  • Repository
  • 1 Watchers
  • 4 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

GraphQL Mapper Bundle

Symfony bundle for GraphQL Mapper, (*1)

Installation

This is installable via Composer as arthem/graphql-mapper-bundle:, (*2)

composer require arthem/graphql-mapper-bundle

Setup / Configuration

Enable the bundle:, (*3)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Arthem\Bundle\GraphQLBundle\ArthemGraphQLBundle(),
        );

        // ...
    }

    // ...
}

Create your schema:, (*4)

# app/config/graphql_schema.yml

# Your schema here

See graphql-mapper documentation, (*5)

Then declare your mapping file in the bundle configuration:, (*6)

# app/config/config.yml

arthem_graphql:
    mapping:
        files:
            - %kernel.root_dir%/config/graphql_schema.yml

Setup routing:, (*7)

# 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, (*8)

License

Released under the MIT License., (*9)

The Versions

20/05 2016

dev-master

9999999-dev https://github.com/4rthem/graphql-mapper-bundle

The GraphQL Mapper Symfony Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur de Moulins

mapping graphql

20/05 2016

0.0.2

0.0.2.0 https://github.com/4rthem/graphql-mapper-bundle

The GraphQL Mapper Symfony Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur de Moulins

mapping graphql

06/03 2016

0.0.1

0.0.1.0 https://github.com/4rthem/graphql-mapper-bundle

The GraphQL Mapper Symfony Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arthur de Moulins

mapping graphql