Releases: nuwave/lighthouse
Releases · nuwave/lighthouse
v2.1 Release Candidate
Going to freeze updates for v2.1
, all PRs going to master will be for v2.2
and bugfixes for v2.1
should be merged with this new branch.
GraphQL Security Directives
Created @security
directive which can be set on the Query
type with the following options:
type Query @security(introspection: false, depth: 10, complexity: 100) {
# ...
}
A new @complexity
directive has been created which can be attached to fields to calculate complexity (default calculation provided for relationships):
type User {
# default calculation
posts: [Post!]! @hasMany @complexity
# custom calculation
posts: [Post!]! @hasMany @complexity(resolver: "App\\Http\\GraphQL\\Complexity::userPosts")
}
Handle subscription definition in schema
v2.1-beta.8 Update composer.json
Allow `relay` or `connection` as pagination type
v2.0.5 allow relay or connection as pagination type
Fix relay cursor
v2.0.4 fix relay cursor
Allow `relay` or `connection` as pagination type
v2.1-beta.7 allow `relay` or `connection` as pagination type
Relay Cursor and Postgres Fixes
v2.1-beta.6 fix relay cursor
Remove backticks in QueryBuilder (Postgres)
v2.0.3 remove backticks (postgres)
Initial Lumen Support
Thanks to the help of @4levels and @kikoseijo, Lumen has initial support! If you run into any problems please submit an issue!
Client Directives
You can now define client side directives in your schema files. Some helper methods/traits will be provided in the future that you can use to help resolve those directives.
Server Side
# Server Side - Defines a client directive that can be applied to fields
directive @cache(key: String) on FIELD
# ...
type Query {
foo: String
}
Client Side
query Foo {
foo @cache("client-cache-key")
}