laravel-graphql
laravel-graphql copied to clipboard
Facebook GraphQL for Laravel 5. It supports Relay, eloquent models, validation and GraphiQL.
If you load a schema like this: ```php $schema = GraphQL::schema([ 'query' => [ 'examplesCustom' => ExamplesQuery::class ], 'mutation' => [ 'updateExampleCustom' => UpdateExampleMutation::class ], 'types' => [ Type1::class, Type2::class...
can I access HTTP headers from php Query resolver? I want to access the 'User-Agent', 'Accept-Language' and some other custom HTTP header from resolver. Thanks a lot
I have added these 2 missing arguments in order to access the $info in the authorize method.
I see the `feature/relay` branch is what you need to install in order to use Relay. Is there an intention to merge that branch into master or will it always...
`public function type() { return Type::listOf(GraphQL::type('User')); } ` `public function type() { return GraphQL::type('User')); } `
Thanks for the great library. I found a typo in advances docs so would like to fix it. My editor also removed trailing spaces...
For all built in errors (e.g. 'In field "x": Expected type "String", found "y"), can these be localized? Laravel now offers a way for packages to present localized errors in...
- Only generate minimal necessary rules to prevent infinite loops with circularly nested Input Objects - Move validation from trait to the generic field class. This makes it so that...
Lets say I have a many to many relation. `Users` have many `Groups`. The relation structur is: user --- user_group -- group From the table `user_group` I need the additional...
{ "message": "Type UserType not found.", "exception": "Folklore\\GraphQL\\Exception\\TypeNotFound", "file": "C:\\Web\\htdocs\\grap\\vendor\\folklore\\graphql\\src\\Folklore\\GraphQL\\GraphQL.php", "line": 98, "trace": [ { "file": "C:\\Web\\htdocs\\grap\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Facades\\Facade.php", "line": 221, "function": "type", "class": "Folklore\\GraphQL\\GraphQL", "type": "->" }, { "file": "C:\\Web\\htdocs\\grap\\app\\GraphQL\\Query\\UserQuery.php", "line":...