parent
5e6767b5e1
commit
99bf33b720
@ -0,0 +1,11 @@ |
||||
overblog_graphql: |
||||
definitions: |
||||
schema: |
||||
query: Query |
||||
mappings: |
||||
auto_discover: false |
||||
types: |
||||
- |
||||
type: yaml |
||||
dir: "%kernel.project_dir%/config/graphql/types" |
||||
suffix: ~ |
@ -0,0 +1,3 @@ |
||||
overblog_graphql_endpoint: |
||||
resource: "@OverblogGraphQLBundle/Resources/config/routing/graphql.yml" |
||||
prefix: /graphql |
@ -0,0 +1,29 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\ApiBundle\GraphQL\Mutation; |
||||
|
||||
use Chamilo\CoreBundle\Framework\Container; |
||||
use Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface; |
||||
use Overblog\GraphQLBundle\Definition\Resolver\MutationInterface; |
||||
|
||||
/** |
||||
* Class RootMutation |
||||
* |
||||
* @package Chamilo\ApiBundle\GraphQL\Mutation |
||||
*/ |
||||
class RootMutation implements MutationInterface, AliasedInterface |
||||
{ |
||||
/** |
||||
* Returns methods aliases. |
||||
* |
||||
* For instance: |
||||
* array('myMethod' => 'myAlias') |
||||
* |
||||
* @return array |
||||
*/ |
||||
public static function getAliases() |
||||
{ |
||||
return []; |
||||
} |
||||
} |
@ -0,0 +1,31 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\ApiBundle\GraphQL\Resolver; |
||||
|
||||
use Chamilo\CoreBundle\Framework\Container; |
||||
use Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface; |
||||
use Overblog\GraphQLBundle\Definition\Resolver\ResolverInterface; |
||||
|
||||
/** |
||||
* Class RootResolver |
||||
* |
||||
* @package Chamilo\ApiBundle\GraphQL\Resolver |
||||
*/ |
||||
class RootResolver implements ResolverInterface, AliasedInterface |
||||
{ |
||||
|
||||
/** |
||||
* Returns methods aliases. |
||||
* |
||||
* For instance: |
||||
* array('myMethod' => 'myAlias') |
||||
* |
||||
* @return array |
||||
*/ |
||||
public static function getAliases() |
||||
{ |
||||
return [ |
||||
]; |
||||
} |
||||
} |
Loading…
Reference in new issue