Skip to content

Commit

Permalink
@defer initial support (#2642)
Browse files Browse the repository at this point in the history
* dirty @defer support on fields.

* spec-compliant @defer support on fragments.

* support returning errors with deferred fragments.

* use gqlparser commit that contains the @defer declaration.

* update integration tests.

* fix gotpl indent and pass the correct context to deferred .Dispatch().

* Added hasNext in the tests

* Added back root_.gotpl

* Regenerate

* Regenerate recursively

* Updated schema-expected.graphql

* Added @defer to followschema and singlefile

* Fixed starwars_test.go

* Cleanup

* Add graphql response hasnext omitempty and update tests to match

Signed-off-by: Steve Coffman <[email protected]>

---------

Signed-off-by: Steve Coffman <[email protected]>
Co-authored-by: fiatjaf <[email protected]>
Co-authored-by: UnAfraid <[email protected]>
  • Loading branch information
3 people authored May 21, 2023
1 parent 4d945da commit c313bf3
Show file tree
Hide file tree
Showing 64 changed files with 9,160 additions and 5,565 deletions.
378 changes: 222 additions & 156 deletions _examples/chat/generated.go

Large diffs are not rendered by default.

454 changes: 281 additions & 173 deletions _examples/config/generated.go

Large diffs are not rendered by default.

495 changes: 308 additions & 187 deletions _examples/dataloader/generated.go

Large diffs are not rendered by default.

20 changes: 15 additions & 5 deletions _examples/embedding/subdir/entity.generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c313bf3

Please sign in to comment.