A framework for serving GraphQL from Laravel
MIT License
Bot releases are hidden (Show)
Published by chrissm79 over 6 years ago
Published by chrissm79 over 6 years ago
First, create a class that extends the new validator
// app/Http/GraphQL/Validators/MyCustomValidator.php
use Nuwave\Lighthouse\Support\Validator\Validator;
class MyCustomValidator extends Validator
{
public function rules()
{
// return array of rules...
}
}
Add validate directive to your schema:
extend type Mutation {
createFoo(input: FooInput!): FooPayload
@validate(validator: "App\\Http\\GraphQL\\Validators\\MyCustomValidator")
}
Published by chrissm79 over 6 years ago
Published by chrissm79 over 6 years ago
Final pre-release before v2.0 which will be cut tonight or tomorrow!
Published by chrissm79 over 6 years ago
Published by chrissm79 over 6 years ago
Published by chrissm79 over 6 years ago
Created @paginate
directive to allow for pagination off a root query.
Published by chrissm79 over 6 years ago
Published by chrissm79 over 6 years ago
Created @group
directive to set namespace
and middleware
.
Published by chrissm79 over 6 years ago
Fixed issue w/ belongsToMany
and hasManyThrough
relationships and the QueryBuilder
. Also fixes hasMany
directive with these relation types.
Side Note: I'm horrible at cutting releases today
Published by chrissm79 over 6 years ago
Fixed issue w/ belongsToMany
and hasManyThrough
relationships and the QueryBuilder. Also fixes hasMany
directive with these relation types.
Published by chrissm79 over 6 years ago
Fixed issue w/ many-to-many
relationships and the QueryBuilder
.
Published by chrissm79 over 6 years ago
Use graphql-php
's Deferred class to handle N+1 issues w/ belongsTo
and hasMany
fields.
Published by chrissm79 over 6 years ago
Published by chrissm79 over 6 years ago
Overhaul of Lighthouse to migrate towards a "Schema First" design pattern.
Published by chrissm79 over 6 years ago
Laravel has a scopeGetConnection
on Eloquent models that was colliding w/ the scope provided by Lighthouse. The Lighthouse scope has been renamed to scopeGetGqlConnection
.
Published by chrissm79 over 6 years ago