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