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 -->