/**
  * Output fields for mutation.
  *
  * @return array
  */
 protected function outputFields()
 {
     return ['hero' => ['type' => GraphQL::type('hero'), 'resolve' => function ($payload) {
     }]];
 }
Exemple #2
0
 /**
  * Type query returns.
  *
  * @return Type
  */
 public function type()
 {
     return GraphQL::type('user');
 }