rebing/graphql-laravel
Code-first GraphQL integration for Laravel based on webonyx/graphql-php. Define schemas, types, queries and mutations in PHP. Supports multiple schemas, per-schema middleware, resolver middleware, and n+1 prevention via dataloaders or SelectFields eager loading.
Pagination and SimplePagination helper types now enforce nonNull on their data types--prefer-lowest #1055 / mfnlaragraph/utils and webonyx/graphql-php
and thus their minimum version had to be slightly bumped to 2.0.1 and
15.0.3 respectively.controller param in config #906 / viktorruskaiUploadType now has to be added manually to the types in your schema if you want to use it
::getInstance() method is goneresolve($root, $array, SelectFields $selectFields, ResolveInfo $info)resolve($root, $array, $context, ResolveInfo $info, Closure $getSelectFields)error.validation to error.extensions.validation as per GraphQL spec recommendation #294lazyload_types), improve performance on large type systems #405 but doesn't work together with type aliases or paginate().make:graphql:input commandmake:graphql:union commandmake:graphql:interface commandmake:graphql:field commandmake:graphql:enum command and dedicated EnumType, deprecating $enumObject=true in the Type classmake:graphql:scalar command and add more information regarding scalars to the readmeTypeConvertible interface requiring to implement toType(): \GraphQL\Type\Definition\Type
Existing types are not affected because they already made use of the same method/signature, but custom Scalar GraphQL types work differently and benefit from the interfacealias is now also supported for relationships #367InputType support class which eventually replace $inputObject=true #363DB::raw() in alias fieldsgraphql service is requested, improving performance when having this library installed but not using it in certain workloads (pure artisan commands, non-GraphQL web requests, etc.) #427App\GraphQL\Queries, not App\GraphQL\Query anymore); make commands have been adjustedSupport\Field, Support\InterfaceType, Support\Mutation, Support\Query, Support\Type, Support\UnionType #357cdn.jsdelivr.net and cdnjs.cloudflare.comValidatorError: remove setter and make it a constructor arg, add getter and rely on contractsis_lumen with static class call \Rebing\GraphQL\Helpers::isLumenSelectFields and still generates correct SQL queries #415authorize() #413\Fluent dependency on \Rebing\GraphQL\Support\Field #431\Fluent dependency on \Rebing\GraphQL\Support\Type #389\Rebing\GraphQL\Support\Type::$instances\Rebing\GraphQL\Support\Type::$unionTypegraphql. for compatibility with Folklore #360headers to send custom HTTP headers and json_encoding_options for encoding the JSON response #293\o/array_* and str_* helpers with direct Arr::* and Str::* callshandle_errorsrules support for Query fieldsHow can I help you explore Laravel packages today?