Skip to content

Releases: slackhq/hack-graphql

Replace all usages of `elseif` with `else if`

24 Oct 20:03
Compare
Choose a tag to compare
v0.20

Migrate elseif to else if

Add Request/Response interfaces

04 Apr 16:01
Compare
Choose a tag to compare
Pre-release

Releases #115. We expose Request and Response classes to simplify accessing metadata about a request and response. For example, you can easily access the operation name:

$request = GraphQL\Request::build($input, $variables);
$operation_name = $request->getOperationName();

To actually execute a request, use the following:

$request = GraphQL\Request::build($input, $variables);
$response = await $resolver->resolve($request);
return $response->toShape();

Future work could include a Server class wrapping the above code, and a resolve() method on IRequest abstracting away the concrete implementation of $resolver.

Allow multiple inheritance

01 Mar 17:35
Compare
Choose a tag to compare
Pre-release

Only generate connection objects if connection is annotated with ObjectType

Send more data to hasNextPage/hasPreviousPage

11 Feb 19:30
Compare
Choose a tag to compare

passes more params to hasNextPage/hasPreviousPage which allows for more complex overriding. This is especally necessary when using SQL with graphql. As you have to artificially change the sort order in SQL to retrieve things, thus changing which start or end cursor to use for the next/prev page

also improve efficiency of hasNextPage/hasPreviousPage

Fix bug with sort descending

18 Jan 20:56
Compare
Choose a tag to compare
Pre-release

There is a clever calculation for previous and next page where we pull 1 extra item. However when it is sort descending it ends up removing the first item instead of the extra one it added. This fixes that bug

It also fixes a minor bug where hasPreviousPage and hasNextPage sometimes return null instead of false

Bugfix: Allow non-GraphQL attributes

19 Nov 17:10
Compare
Choose a tag to compare
Pre-release

Bugfix: prevent codegen from breaking if a non-GraphQL class is annotated with an attribute.

Fix bug in ListInputType::assertValidVariableValue

19 Oct 19:57
Compare
Choose a tag to compare

Fixes a bug in ListInputType::assertValidVariableValue which prevented input types from containing lists of enumerated types.

Allow custom fields on connections

07 Oct 17:23
Compare
Choose a tag to compare
Pre-release
v0.13

format

Another connection codegen fix

27 Sep 17:55
Compare
Choose a tag to compare
Pre-release

What the title says

Fix issue with connections and namespaces

24 Sep 22:09
Compare
Choose a tag to compare
v0.11

Better handling namespaced objects