gqlgen v0.12.0 Release Notes

Release Date: 2020-08-14 // over 3 years ago
    • 70302123 Version 0.12.0

    ๐Ÿ”€ 3b633dfa Merge pull request #1267 from ImKcat/master

    ๐Ÿ›  Fixed transport not support issue

    ๐Ÿ”€ c9a27ae3 Merge pull request #1255 from s-ichikawa/fix-object-directive-bug

    ๐Ÿ›  Fix bug about OBJECT directive

    ๐Ÿ”€ e9863af1 Merge pull request #1276 from Ghvstcode/master

    ๐Ÿ“š Documentation Fixes

    ๐Ÿ”€ 04f6a691 Merge pull request #1277 from 99designs/direct-pointer-binding

    ๐Ÿ‘Œ Support pointers in un/marshal functions

    • ๐Ÿ“„ bef9c8bf Add comments and docs for pointer scalars

    997efd03 Reintroduce special cast case for string enums

    โช This reverts commit 89960664d05f0e93ed629a22753b9e30ced2698f.

    • ๐Ÿ— 8561c056 Replace awkward loop in buildTypes with recursion

    • d65b04f9 Clean up generated code

    • ๐Ÿ‘• e1c463a4 Linting

    • ๐Ÿšš 89960664 Remove unused special cast case for string enums

    • 196954bc Bind directly to pointer types when possible, instead of always binding to value types

    • โšก๏ธ 5b3d08db Update README.md

    • โšก๏ธ efd33dab Update README.md

    • ๐Ÿ›  f35b162f Fixed transport not support issue

    ๐Ÿ”€ 39a12e0f Merge pull request #1134 from seriousben/fix-default-config-no-ast-sources

    โž• Add LoadDefaultConfig to load the schema by default

    ๐Ÿ”€ 1b23cf15 Merge pull request #1264 from 99designs/go-1.14

    Target multiple go versions for CI

    • dbbda22e go 1.14

    ๐Ÿ”€ ce964c1f Merge pull request #1115 from bowd/add-input-path-for-unmarshaling

    โž• Add input path in unmarshaling errors

    • bde4291c shadow context to ensure scoped context use

    • ๐Ÿ”€ c43990a0 Merge remote-tracking branch 'origin/master' into HEAD

    • 6be2e9df fix fileupload example

    ad675f00 Allow custom resolver filenames using filename_template option (closes #1085)

    ๐Ÿ”€ resolve merge conflicts.

    • ๐Ÿ”€ fbfdd41c Merge pull request #1262 from sateeshpnv/gqlparser-alias (closes #1258)

    • ๐Ÿ“œ 99fafc9f [issue #1258] explicitly add gqlparser alias to vektah/gqlparser/v2 import

    • 49291f23 fix bug in OBJECT directive

    ๐Ÿ”€ 0fbf293f Merge pull request #1248 from sotoslammer/master

    close the connection when run returns

    ๐Ÿ”€ d7eabafb Merge pull request #1246 from arkhvoid/master

    ๐Ÿ›  Fix typo cause memory problem on upload

    • 21b223b8 Fix typo cause memory problem on upload

    • cc9c520f close the connection when run returns

    ๐Ÿ”€ 8494028e Merge pull request #1243 from 99designs/nilable-nullable-unnmarshal

    โœ‚ Remove a bunch of unneeded nil checks from non-nullable graphql type unmarshalling

    • โœ… b81138da Add test for nillable input slice

    • 14d1a4dc Only return nil for nilable types when the graphql spec would allow it

    ๐Ÿ”€ 3e59a10d Merge pull request #1215 from ddouglas/master

    โž• Adding Missing Header to response

    1650c499 Merge pull request #1242 from 99designs/named_map_references

    Do not use pointers on named map types

    • d11f6021 Do not use pointers on named map types

    ๐Ÿ”€ acaee361 Merge pull request #1121 from Khan/extern-only

    Do not require a resolver for "empty" extended types.

    ๐Ÿ”€ 555db6d2 Merge pull request #1224 from frederikhors/patch-1

    ๐Ÿ–จ Indentation misprint

    • ๐Ÿ–จ 77b37bb2 Indentation misprint

    ๐Ÿ”€ a3c38c65 Merge pull request #1221 from longngn/patch-1

    โšก๏ธ Update dataloaders.md

    • โšก๏ธ 71182de8 Update dataloaders.md

    ๐Ÿ”€ d81baeed Merge pull request #1218 from StevenACoffman/patch-1

    โšก๏ธ Update feature comparison for federation

    • โšก๏ธ 2c1f2345 Update feature comparison for federation (closes #5)

    • โœ… e19d43bc Adding test

    • 4a62f012 Adding ContentType header to GET request responses

    • โœ… f5de4731 Add timeout to integration test

    ๐Ÿ”€ a21a6633 Merge pull request #1189 from RichardLindhout/patch-1

    โฌ†๏ธ Upgrade to OperationContext and remove duplicate fields to fix https:โ€ฆ

    ๐Ÿ”€ 543317a2 Merge pull request #1170 from alexsn/apollotracing/nopanic

    apollotracing: skip field interceptor when on no tracing extension

    • โšก๏ธ d347d972 Update stale.yml

    ๐Ÿ”€ 032854bb Merge pull request #1154 from gsgalloway/master

    โž• Add operation context when dispatching

    โšก๏ธ ccc4eb1d Merge pull request #1188 from k-yomo/update-errors-doc

    โšก๏ธ Update outdated examples in errors doc

    ๐Ÿ”€ 628b83c1 Merge pull request #1198 from ddevault/pgp

    codegen: add PGP to common initialisms

    ๐Ÿ”€ d881559b Merge pull request #1202 from whereswaldon/patch-1

    doc: fix typo in embedded struct example

    โšก๏ธ b6ce42a7 Merge pull request #1207 from k-yomo/update-gorilla-websocket

    โšก๏ธ Update gorilla/websocket to v1.4.2 to resolve vulnerability

    • โšก๏ธ c5bfe9d3 Update gorilla/websocket to v1.4.2 to resolve vulnerability

    • 55c16e93 doc: fix typo in embedded struct example

    • 89eb1993 codegen: add PGP to common initialisms

    • 9ab7294d apollotracing: skip field interceptor when on no tracing extension

    ๐Ÿ”€ 40570d1b Merge pull request #1163 from fwojciec/master

    ๐Ÿ›  fix redundant type warning

    ๐Ÿ”€ 3f7f60bf Merge pull request #1181 from tmc/patch-1

    โšก๏ธ Update getting-started.md

    • โฌ†๏ธ 6518d839 Upgrade to OperationContext and remove duplicate fields to fix https://github.com/99designs/gqlgen/pull/1161

    • โšก๏ธ 632904ad Update outdated examples in errors doc

    • โšก๏ธ 0921915d Update getting-started.md

    ๐Ÿ”€ 0a404813 Merge pull request #1117 from s-ichikawa/object-directive

    โž• Add support for OBJECT directive

    ๐Ÿ”€ 90ee8ded Merge pull request #1137 from ddevault/master

    ๐Ÿ“ฆ Replace ~ with ื in package names

    ๐Ÿ”€ e4c699dc Merge pull request #1147 from ddevault/docs

    โž• Add links to godoc to the README and docsite

    ๐Ÿ”€ 73746621 Merge pull request #1131 from muraoka/fix-typo

    ๐Ÿ›  Fix typo in authentication docs

    ๐Ÿ“š ace558b4 Merge pull request #1124 from OpenSourceProjects/update-apq-documentation

    โšก๏ธ Update APQ example to reflect newer API

    ๐Ÿ”€ 3c126f9e Merge pull request #1119 from skaji/patch-1

    type Person -> type Person struct

    • โšก๏ธ 1610039e updated generated code

    • โš  905e1aad fix redundant type warning

    • 39ded924 fix ctx

    • e7798ff2 insert operation context

    • ๐Ÿ“„ 6f78c6ac Add links to godoc to the README and docsite

    • ๐Ÿ“ฆ 9b823a34 Replace ~ with ื in package names (closes #1136)

    • 0๏ธโƒฃ 35a90482 Add LoadDefaultConfig to load the schema by default

    • ๐Ÿ“„ 07a5494b Fix typo in docs

    โšก๏ธ 04b120c9 Update APQ example to reflect newer API

    The example in APQ relates to the old handlers. This brings it up to ๐Ÿ‘‰ show how extensions can be used - and uses the new API for registering ๐Ÿ”Œ plugins that come in the graph.

    The cache example now implements the graphql.Cache interface

    • 55e0f0db Check in a place where Entity might be nil now.

    1ecd0749 Handle the case that all entities are "empty extend".

    In that case, there are no resolvers to write, so we shouldn't emit any.

    • 0e2666fb Run go fmt

    36b5ed83 Actually, we need to check all-external, not all-key.

    We might well be defining our own type that has only key-fields, but if they're not external then we're the primary provider of the type

    โœ… Test plan: โœ… go test ./plugin/federation/

    7e3f5844 Do not require a resolver for "empty" extended types.

    Summary: If our schema has a field with a type defined in another service, then we need to define an "empty extend" of that type in this service, so this service knows what the type is like. But the graphql-server will never ask us to actually resolve this "empty extend", so we don't require a resolver function for it. Example:

       type MyType {
          myvar: TypeDefinedInOtherService
       }
    
       // Federation needs this type, but it doesn't need a resolver for
       // it!  graphql-server will never ask *us* to resolve a
       // TypeDefinedInOtherService; it will ask the other service.
       extend TypeDefinedInOtherService @key(fields: "id") {
          id: ID @extends
       }
    

    โœ… Test Plan: โœ… I manually tested this on a service (assignments) that we have that โœ… fell afoul of this problem. But I had a hard time adding tests inside gqlgen because the error happens at validation-time, and the โœ… federation tests are not set up to go that far down the processing path.

    Reviewers: benkraft, lizfaubell, dhruv

    Subscribers: #graphql

    Differential Revision: https://phabricator.khanacademy.org/D61883

    • 9c80bb5b type Person -> type Person struct

    • โœ… ea210929 add test for object directive

    • ๐Ÿ”€ 5c3812cb merge object directives to field directives

    • โœ… 8ea5ba2b Fix additional missed tests

    • 65be2a6e Run generate

    • ๐Ÿ‘• fd615cf6 Fix linting

    • ๐Ÿ“š 61fa9903 Add documentation for scalad error handling

    • โœ… 1aa20f25 Add test to highlight usecase

    • d98ff1b0 Modify templates to include deeper context nesting

    โšก๏ธ a1a02615 Merge pull request #1104 from oshalygin/docs/update-query-complexity-initialization

    ๐Ÿ“š Update Query Complexity Documentation

    ๐Ÿ”€ c68df3c6 Merge pull request #1112 from s-ichikawa/delete-unused-code

    โœ‚ delete unused code

    ๐Ÿ‘ท dfb6558a run CI on PRs

    ๐Ÿ›  PRs from outside the org arent running CI, hopefully this fixes it.

    • 5149231c delete unused code

    ๐Ÿ“š 6f81ff92 Update Query Complexity Documentation

    • ๐Ÿ“š This pass at the documentation updates the appropriate section regarding query complexity, specifically in the way that the http.Handler is created.
    • ๐Ÿ—„ The deprecated handler.GraphQL calls were replaced with NewDefaultServer.
    • ๐Ÿ›  Instead of passing along the fixed query complexity as a second argument to the now deprecated handler.GraphQL func, extension.FixedComplexityLimit is used instead.
    • โšก๏ธ f0cd7a70 update doc site to point to latest version

    • ๐Ÿš€ 224ff345 v0.11.3 postrelease bump

    <!-- end of Commits --> <!-- end of Else -->

    <!-- end of If NoteGroups -->