Skip to content

Releases: nuwave/lighthouse

v2.1 Release Candidate

08 Jun 17:08
4f8e516
Compare
Choose a tag to compare
Pre-release

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

08 May 21:25
Compare
Choose a tag to compare
Pre-release

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")
}

Read More: https://webonyx.github.io/graphql-php/security/

Handle subscription definition in schema

06 May 01:09
45b1eb7
Compare
Choose a tag to compare
v2.1-beta.8

Update composer.json

Allow `relay` or `connection` as pagination type

27 Apr 03:32
Compare
Choose a tag to compare
v2.0.5

allow relay or connection as pagination type

Fix relay cursor

27 Apr 03:18
Compare
Choose a tag to compare
v2.0.4

fix relay cursor

Allow `relay` or `connection` as pagination type

27 Apr 03:32
Compare
Choose a tag to compare
v2.1-beta.7

allow `relay` or `connection` as pagination type

Relay Cursor and Postgres Fixes

27 Apr 03:20
Compare
Choose a tag to compare
Pre-release
v2.1-beta.6

fix relay cursor

Remove backticks in QueryBuilder (Postgres)

25 Apr 23:23
Compare
Choose a tag to compare
v2.0.3

remove backticks (postgres)

Initial Lumen Support

23 Apr 03:35
b4873c3
Compare
Choose a tag to compare
Initial Lumen Support Pre-release
Pre-release

Thanks to the help of @4levels and @kikoseijo, Lumen has initial support! If you run into any problems please submit an issue!

Client Directives

23 Apr 03:12
Compare
Choose a tag to compare
Client Directives Pre-release
Pre-release

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")
}