Changelog History
Page 4
-
v0.11.2 Changes
March 05, 2020- ๐ 2ccc0aa6 release v0.11.2
๐ 78f3da22 Merge pull request #1050 from technoweenie/executor
Executor
- ๐ท b82ee517 Fix CI badge
๐ 42eff5a9 Merge pull request #1057 from RichardLindhout/master
โฌ๏ธ Upgrade to github.com/urfave/cli/v2
๐ bb5cb8a3 Merge pull request #1086 from 99designs/github-actions
๐ Use GitHub Actions
- ๐ cd2b53f2 remove os.Exits
587bc81c Merge pull request #1074 from yudppp/feature/add_contenttype_for_upload
โ Add ContentType to graphql.Upload
a84d6577 graphql/handler: revive the existing around func types
โ f9bb017b graphql/executor_test: ensure operation trace is started before every query
๐ 57dd8d9c graphql/gqlgen: remove unnecessary convenience method
๐ fb86f7b9 graphql/executor: remove the naked return
9ae6bc0b graphql/executor: reinit all extension values on every Use() call
f3909a8a graphql/executor: make ext funcs private
๐ท df9e7ce3 Run CI on push only
โก๏ธ ed76bc92 Update badge
๐ 5a1a5446 Coveralls fixes
๐ 41acc753 Fix windows line endings
390cea4f Replace Appveyor with Github Actions
85be072f Replace CircleCI with Github Actions
โ 8d540db3 fix: Add Upload.ContentType test
๐ f21832af fix: Fixed Upload type document
๐ b165568c Merge pull request #1071 from kandros/fix-server-path
๐ fix server path
๐ 9d7648aa Merge pull request #1072 from wtask/patch-1
๐ Fix a typo in sql example
๐ 24400c9b Merge pull request #1079 from sonatard/remove-unused
โ Remove unused code
๐ a7c79891 Merge pull request #1081 from sonatard/fix-plugin-test
๐ Fix unlink file path in resolvergen test
๐ e7bf7548 Merge pull request #1080 from sonatard/fix-testdata
๐ Fix test data
โ 3a61dc00 Fix unlink file path in resolvergen test
โ df5ac929 Fix test data
๐ b2843f67 Remove unused code
cff73f71 Add ContentType to Upload
f0ebc0df Fix a typo in sql example
I think todo is referenced to user by user_id field, not by todo.id
- 22a43d77 fix server path
๐ b788cce5 Merge pull request #1054 from 99designs/golint-free-resolvers
๐ suppress golint messages
๐ c515d403 Merge pull request #1053 from RichardLindhout/patch-3
โ Add practical example of getting all the requested fields
๐ e57cd445 Merge pull request #1061 from halvdan/patch-1
๐ Fix mismatching documentation of Todo struct
๐ 1388fa94 Fix mismatching documentation of Todo struct
๐ Mismatch between the code and the getting started documentation.
โช 294884ad Rollback go.sum and go.mod as per feedback of @vektah
โฌ๏ธ d8acf165 Upgrade to github.com/urfave/cli/v2
๐ 81bcbe75 suppress golint messages
24813079 Add practical example of getting all the requested fields
๐ Based on this https://github.com/99designs/gqlgen/issues/954 was tagged as 'need documentation'
๐ a53ce377 Merge pull request #1051 from 99designs/has-operation-context
โ Add function to check presense of operation context
95e453bf Add function to check presense of operation context
๐ 36365c41 graphql/executor: move setExtensions()
3acc9421 graphql/executor: ensure Executor implements graphql.GraphExecutor.
๐ f89b973b graphql/executor: merge ExtensionList into Executor
c16a77c3 graphql/handler: replace internal executor type
8fa26cec graphql/executor: extract an Executor type from graphql/handler
โ d5d780c5 Point latest docs to 0.11.1
๐ abaa0a04 v0.11.1 postrelease bump
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.11.1 Changes
February 18, 2020- ๐ 11af15a1 release v0.11.1
๐ bc07188c Merge pull request #1038 from 99designs/feat-check-len
check slice length
- 2c3853c8 fix whitespace in comparison
๐ 07a13861 Merge pull request #1043 from 99designs/ensure-panic-handlers-get-applied
Ensure panic handlers get applied
๐ 156d306d Merge pull request #1046 from appleboy/patch
๐ docs(gin): missing import playground
๐ 26ee1aa1 docs(gin): missing import playground
โ 3abe5b32 add test
๐ 6ecdb88d Merge branch 'master' into feat-check-len
2340f7a7 Ensure panic handlers get applied
๐ 25d16761 Merge pull request #1039 from VitaliiLakusta/patch-1
๐ Fix link to examples directory in Federation docs
๐ 4c47ad16 Fix link to examples directory in Federation docs
2506dce0 check slice len
1a68df34 fix origin/master reference in switcher
๐ 199cfedf remove old docs that no longer run with new layout
556c8484 fix paths
๐ 282100c8 use current layout to build old doc content
๐ 4c38b8b4 v0.11.0 postrelease bump
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.11.0 Changes
February 17, 2020- ๐ 368597aa release v0.11.0
โก๏ธ e65d6228 Merge pull request #1036 from 99designs/update-v011-docs
โก๏ธ Update 0.11 migration docs
- โก๏ธ 11f97936 Update 0.11 migration docs
๐ 2b3eed30 Merge pull request #1034 from 99designs/strip-underscores-from-entity-interfaces
Trim underscores from around go identifiers
โก๏ธ b2d9bfcb Update stale.yml
โก๏ธ 1ac8b5ae Update stale.yml
4b9dfa61 trim underscores from around go identifiers
๐ 7cac3610 Merge pull request #1027 from sonatard/response-errors
propagate resolver errors to response error in ResponseMiddleware
๐ 14dccc57 Merge pull request #1022 from 99designs/feat-gqlparser-117
๐ example about apply https://github.com/vektah/gqlparser/pull/117
- ๐ cf6f7683 bump to gqlparser v2
๐ 4ece3857 Merge pull request #1028 from abhimanyusinghgaur/master
๐ Respect includeDeprecated for EnumValues
9638ce0f Fix format
51b921fa Fix format
๐ 07ffcc82 Respect includeDeprecated for EnuValues
d58434c9 propagate resolver errors to response error in ResponseMiddleware
59855925 go mod tidy
๐ e4530da6 apply https://github.com/vektah/gqlparser/pull/117
๐ 30e23757 Merge pull request #1020 from 99designs/handle-interfaces-implementing-interfaces
๐ Handle interfaces that implement interfaces
- b7a58a1c Handle interfaces that implement interfaces
๐ ab8d62b6 Merge pull request #1019 from 99designs/remove-source-reprinting
โ Remove source reprinting
๐ 2f0fa0ef handle schema loading error better
๐ aacc9b1f Remove source reprinting
๐ e289aaa0 Merge pull request #1018 from 99designs/federation-docs
๐ Federation docs and examples
- ๐ 3045b2cf Federation docs and examples
๐ 656a07d1 Merge pull request #1016 from 99designs/federation-entity-type
Create a non generated federation _Entity type
- 8850a527 Create a non generated federation _Entity type
๐ 1d41c2eb Merge pull request #1012 from 99designs/federation-config
๐ Allow configuring the federation output file location
๐ afa9a150 Merge pull request #1013 from 99designs/feat-error-dispatch
propagate errors to response context in DispatchError
- 652aa2fb propagate errors to response context in DispatchError
๐ 0fe1af8c Merge pull request #1011 from Khan/compound-keys
๐ Compound key support in federation
- ๐ง ad3c1c81 Allow configuring the federation output file location
๐ b4a00e6c Merge pull request #1010 from Khan/query-exists
๐ Make sure there's a Query node before trying to add a field to it.
โ 65401637 Adding type with multiple keys to federation test
โ Summary: The current federation test schema only has types with single keys (or no keys). Adding a type with multiple keys, including one non-String key, to test compound key federation code gen.
โ Test Plan: - go test
Reviewers: csilvers, miguel
Differential Revision: https://phabricator.khanacademy.org/D60715
๐ 3f714a46 Extending federation to support compound keys per Apollo spec
Summary: ๐ Compound keys are not yet supported for federation in gqlgen. This diff adds support by modifying the federation plugin to handle a list of key fields on an entity rather than a single top-level key field. It will now look for "findBy..." in the resolver, rather than the original "FindBy". The federation plugin does not yet support more complicated FieldSets in the key, such as nested selections.
References:
- ๐ Apollo federation spec: https://www.apollographql.com/docs/apollo-server/federation/federation-spec/
- Selection sets: https://graphql.github.io/graphql-spec/draft/#sec-Selection-Sets
โก๏ธ Will update https://phabricator.khanacademy.org/D59469 with multiple key changes.
โ Test Plan:
- โ Tested Go GQL services using both single- and multiple-key federated types (assignments and content-library in webapp/services)
- Ran gqlgen on non-federated services in webapp to ensure regular generation still works (donations service)
- ๐ง WIP: creating unit tests; will submit as separate diff
Reviewers: briangenisio, dhruv, csilvers, O4 go-vernors
Reviewed By: dhruv, csilvers, O4 go-vernors
Differential Revision: https://phabricator.khanacademy.org/D59569
9f2a624b Make sure there's a Query node before trying to add a field to it.
Federation adds some queries to the schema. There already existed code to insert a Query node if none existed previously. But that code โก๏ธ was only put on addEntityToSchema(), and not the other place we update the query, addServiceToSchema().
Almost always the old code was good enough, since we call โ addEntityToSchema() before addServiceToSchema(). But there's on โ addServiceToSchema(), so we need to do the query-existence check there too.
๐ b941b970 Merge pull request #1007 from 99designs/handle-invalid-autoload-path
๐ฆ Give an appropriate error message when autoload isnt a valid package
95b10809 bump appveyor go version for consistent behavour
91a9ff97 fix bad copy from template
๐ฆ d5d6f830 Give an appropriate error message when autoload isnt a valid package
๐ f7667e12 Merge pull request #1009 from 99designs/interface-regression
Interface regression
ffc419f3 Fix interfaces used as normal object types
โ 44cfb926 Test example for interface regression
๐ 0ddb3ef3 Merge pull request #1006 from ravisastryk/entity-directives-lookup
skip searching directives when entity is found
395e1d73 skip searching directives when entity is found
e1f2282e bump to go 1.13 in ci
๐ 34c92eba Merge pull request #1003 from 99designs/fix-chat-example
๐ fix chat example
- 6bf88417 fix chat example
๐ฆ 8ed2ec59 Merge pull request #988 from 99designs/package-cache
๐ฆ Cache all packages.Load calls in a central object
- ๐ฆ 9ccd7ed7 Cache all packages.Load calls in a central object
๐ 565619a8 Merge pull request #993 from 99designs/resolver-generator-v2
Resolver regenerator
cf4a3eb4 keep imports when scattering resolvers between files
โก๏ธ da7c1e45 Update getting started docs
๐ c233876e fix windows test paths
โ 93713a29 Add tests for code persistence
3e507e0d separate resolver stubs by 1 empty line
โ 8a208af5 add tests covering ResolverConfig
0๏ธโฃ f8e61961 set init to use new resolvers by default
dbaf355d copy through any unknown data
e7255580 copy old imports through before gofmt prunes
6ec36504 Copy existing resolver bodies when regenerating new resolvers
9e3b399d add resolver layout = follow-schema
โก๏ธ 8a18895e Update to latest golangci-lint
๐ f7a67722 Merge pull request #985 from Khan/no-key-needed
fa884991 Correctly generate a federated schema when no entity has a
[@key](https://github.com/key)
.Normally, when a service is taking part in graphql federation, it will services can link to (that is, have an edge pointing to) the type that this service provides. The previous federation code assumed that was the case.
๐ types. It might seem that would mean the service is unreachable, since there is no possibility of edges into the service, but there are and top level Mutation edges. That is, if a service only provides a top-level query or top-level mutation, it might not need to define a
โก๏ธ This commit updates the federation code to support that use case.
๐ 36aae4aa Merge pull request #994 from 99designs/feat-cache-ctx
โ Add context.Context to graphql.Cache interface's methods
61e060bd Merge pull request #995 from alexsn/directiveroot_empty_lines
โ Remove empty lines on DirectiveRoot generation
๐ 30c295c4 Remove empty lines on DirectiveRoot generation
85cfa8a3 Add context.Context to graphql.Cache interface's methods
๐ a6c7aafb Merge pull request #931 from fridolin-koch/master
๐ Fix for Panic if only interfaces shall be generated
๐ ec4f6b15 Merge pull request #989 from 99designs/fix-intermittent-test-ka-failure
๐ Fix intermittent websocket ka test failure
- โ 76035df5 Fix intermittent websocket ka test failure
๐ aa407b1f Merge pull request #979 from 99designs/capture-read-times
Capture read times
โ 4dd10086 fix test race by only stubbing now where we need to
8dbce3cf Capture the time spent reading requests from the client
๐ฆ c6b3e2a1 Merge pull request #983 from vikstrous/name-for-package-global
๐ฆ single packages.Load for NameForPackage
๐ ae79e75b Merge pull request #978 from 99designs/pluggable-error-code
๐ Allow customizing http and websocket status codes for errors
7f6f1667 bump x/tools for consistent import formatting
842fcc11 review feedback
f0bea5ff Allow customizing http and websocket status codes for errors
๐ฆ bd50bbcb single packages.Load for NameForPackage
๐ 28c032d1 Merge pull request #982 from DavidJFelix/patch-1
๐ fix: explicitly exclude trailing comma from link
ac67050a fix: explicitly exclude trailing comma from link
- this looks dumb, but when the page is rendered, the link resolves with the comma, despite the comma being excluded in github rendering.
4e95b363 fix some version switcher paths
08369dfe add missing trailing slash on paths
ea347ca7 fetch all tags
8c1a8f57 fix branch switching
324efc5c add origin if missing
๐ cfa2907a Generate docs for all tags
๐ 8218c734 Merge pull request #851 from marwan-at-work/federation
Apollo Federation MVP
48dc29c1 go 1.12 generate, 1.14 failed
โก๏ธ b2e81787 update gqlparse to v1.2.1
โก๏ธ d2a13d33 update go.mod
๐ 0eef2fe2 Merge pull request #970 from spiffyjr/master
๐ Fix extra trimspace on nillable Unmarshals
๐ 56b8eef2 Merge pull request #974 from oshalygin/docs/gqlgen-pg-example-repo
โ Add Link to Sample Project with GQLGen and Postgres
f49936eb Add Link to Sample Project with GQLGen and Postgres
This is a very straightforward project with numerous details in the README and the official ๐ documentation, but questions continue to pop up around how to use this project, organize the files and ultimately make data calls to some persistent layer.
The
https://github.com/oshalygin/gqlgen-pg-todo-example
was built in order to show newcomers the following:- How to organize their graphql schema, resolvers, dataloaders and models
- How to create a new dataloader
- How to resolve with a dataloader and how to avoid some of the pitfalls(inconsistent db query to keys array order)
- How to map models from a gql schema to structs
While the examples in this project are helpful, they could benefit from more elaborate explanations in the code as well as the README to help newcomers get started. This PR is not intended to portray any of the examples negatively and should not be interpreted as such. There are many findings/lessons learned from the work that folks put together in those examples.
README which covers a ton of the details on how to use this project:
db499561 force rebuild
๐ 0985a78e remove debug comments
โ 7f648425 add preliminary test_data
โ c9d6d94b add preliminary tests
2345936e fix integration
aae7486d go generate
๐ 555a9546 go generate + remove directives nil check
368d546d Apollo Federation MVP
21e0e676 Fix extra trimspace on nillable Unmarshals
๐ f869f5a8 remove deprected handler call
๐ f0b83cb1 fix merge conflict
โก๏ธ cdf96721 update generated code
21356ce3 markdown cleanup
๐จ 412a72fe Merge pull request #885 from 99designs/handler-refactor
๐จ Refactor handler package
bac79c54 force clean git checkout
๐ dca9e4a5 Add migration docs
๐ 5106480b Merge pull request #947 from 99designs/handler-oc-handling
always return OperationContext for postpone process
922db1e3 always return OperationContext for postpone process
๐ 8794f03e v0.10.2 postrelease bump
๐ฆ 14dbf1aa use new handler package in new test
a339a042 panic if operation context is missing when requested
๐ a13a0f5f add docs on extension name conventions
458fa0de Add more interface assertions
d0836b72 Expose APQ stats
cf14cf10 fix: Fix no code generation for only interfaces
๐จ dc76d029 Merge remote-tracking branch 'origin/master' into handler-refactor
๐ฆ 572fb419 remove all references to deprecated handler package
dc622346 Tune allocs for benchmarks
๐จ a6f94626 Merge remote-tracking branch 'origin/master' into handler-refactor
c3f93810 fix benchmark
๐ 631b48a5 remove automatic field stat collection to reduce time calls
a77d9fc2 Add generated stanzas back in
0ee185b8 fix duplicate header sends
7cbd75db fix APQ signature
67fa2104 allow extensions to declare their own stats
e9502ae0 Make extensions validatable
fc727c9c Add a signpost method to handler extension interface
๐ 0a39ae20 add fixed complexity limit
๐ f2ef5ec3 more deprecations and more compat
2898a622 rename ResolverContext to FieldContext
092ed95f collect field timing in generated code
๐ 848c627c remove DirectiveMiddleware
0๏ธโฃ 40f08868 add NewDefaultServer
1b57bc3e Rename RequestContext to OperationContext
๐ 3476ac44 fix linting issues
โก๏ธ 479abbef update generated code
bc981569 Combine root handlers in ExecutableSchema into a single Exec method
๐ฆ 473a0d25 Implement bc shim for old handler package
๐ 631142cf move writer all the way back to the transport
๐ c7bb03a8 merge executable schema entrypoints
๐ฆ e7e913d9 Remove remains of old handler package
๐ 8c5340c1 Add complexity limit plugin
0965420a Add query document caching
aede7d1c Add multipart from transport
โ 64cfc9ad extract shared handler test server stubs
a70e93bc consistently name transports
9d1d77e6 split context.go into 3 files
72c47c98 rename result handler to response handler
4a69bcd0 Bring operation middleware inline with other handler interfaces
ab5665ad Add result context
c3dbcf83 Add apollo tracing
๐ง f00e5fa0 use plugins instead of middleware so multiple hooks can be configured
๐ a7c5e660 build middleware graph once at startup
๐ 2e0c9cab mark validation and parse errors separately to execution errors
cb99b42e Add websocket transport
๐ฆ eed1515c Split middlware out of handler package
๐ฆ b5089cac Split transports into subpackage
d0f68303 port json post
afe241b5 port over tracing
311887d6 convert APQ to middleware
da986181 port over the setter request context middleware
249b602d Start drafting new handler interfaces
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.10.2 Changes
November 28, 2019- ๐ f276a4e6 release v0.10.2
๐ 9e989d94 Merge pull request #929 from nmaquet/check-nil-interface-ptrs
Don't crash when interface resolver returns a typed nil
๐ 6f20101c Merge pull request #940 from vikstrous/optional-modelgen
๐ make model generation optional
๐ 9b9dd562 Merge pull request #942 from vikstrous/disable-validation
โ add skip_validation flag
๐ฆ f9f2063a Merge pull request #941 from vikstrous/qualify-package-path-faster
๐ฆ shortcut QualifyPackagePath in go module mode
4db0e6ec keep function private
c06f05b3 add doc
bd353b3e add skip_validation flag
๐ฆ b829628d shortcut QualifyPackagePath in go module mode
๐ 3a05d2dd add mention in the docs
c2c2d7de make model generation optional
๐ d3f63844 Merge pull request #939 from mjarkk/patch-1
๐ (docs) graph-gophers now supports Struct Field resolving
- ๐ ba3d0189 graph-gophers now supports Struct Field resolvers
๐ e747d923 Merge pull request #938 from lulucas/master
๐ modelgen hook docs fixed
๐ 63be1d5e Merge pull request #1 from lulucas/modelgen-hook-patch-1
๐ modelgen hook docs use plugin poitner
๐ 33fc16b1 modelgen hook docs use plugin poitner
๐ฆ and add modelgen package to ModelBuild type
- fcfe595e Add a comment
โ 59946087 Add unit test for the interface resolver / typed nil interaction
This added test shows that the
_Dog_species
automatically generated resolver will crash unless the extra nil check is added ininterface.gotpl
.- 201768f0 Regenerate examples
85ca9efe Return graphql.Null in interface resolver when passed a typed nil
Go's dreaded typed nil strikes again. Nil pointers of struct types aren't equal to nil interface pointers.
๐ See https://golang.org/doc/faq#nil_error
๐ 15b30588 Merge pull request #894 from 99designs/enum-var-value-coercion
๐ Improve enum value (with vars) validation timing
568433a2 fix ci failed
๐ 0ccfc7e0 Merge branch 'master' into enum-var-value-coercion
๐ 9cfd817e Merge pull request #897 from mskrip/modelgen-hook
โ Add possibility to hook into modelgen plugin
๐ c1e64148 Merge pull request #900 from zannen/master (closes #896)
8a8f0a0f Add autogenerated files (#896)
๐ 531729df Move test schema file from example dir into codegen/testserver (#896)
5144775f Add example to check for regression of #896
3b5df4ce Add check for obviously different TypeReferences (#896)
โก๏ธ fb96756a Update generated content (#896)
โก๏ธ fd201a8c Update UniquenessKey for when Element is/isn't nullable (#896)
With a schema: type Query { things1: [Thing] # Note the lack of "!" }
type Subscription { things2: [Thing!] # Note the "!" }
the UniquenessKey for the two lists is the same, which causes non-deterministic output.
2a269dd3 Add modelgen hook recipe
โ 6ceb76b6 Test tag generation only by looking up extected tag strings
๐ 1f272d1b Add possibility to hook into modelgen plugin (closes #876)
This change introduces option to implement custom hook for model ๐ generation plugin without the need to completly copy the whole
modelgen
plugin.that can be:
func mutateHook(b *ModelBuild) *ModelBuild { for _, model := range b.Models { for _, field := range model.Fields { field.Tag += ` orm_binding:"` + model.Name + `.` + field.Name + `"` } } return b } ... func main() { p := modelgen.Plugin { MutateHook: mutateHook, } ... }
๐ 99a55da2 Merge pull request #927 from matiasanaya/feature/bind-to-embedded-interface
Bind to embedded interface
70e860cc Bind to embedded interface method
๐ a745dc78 Fixes #843: Bind to embedded struct method or field
๐ f80cab06 Merge pull request #923 from 99designs/gqlparser-1.2.0
โก๏ธ Update to gqlparser-1.2.0
- โก๏ธ 7508f4e5 Update to gqlparser-1.2.0
๐ 7653a681 Merge pull request #916 from karthikraobr/patch-1
3->4 scalars
๐ 8faa0e3a Merge pull request #917 from colelawrence/patch-1
๐ docs: Fix typo in title of "Resolvers"
๐ f7d888f9 Merge branch 'master' into patch-1
โก๏ธ d722ac66 Update scalars.md
๐ 1172128c Merge pull request #904 from cfilby/fix-config-docs
๐ Minor Documentation Tweaks
935f11ed Fix typo in title
026d029c 3->4 scalars
5eb6bef6 Fix weird indending
๐ 756dcf6b Merge pull request #907 from lian-yue/patch-1 (closes #860)
โก๏ธ 2a943eed Update directive.go (closes #860)
๐ adbceeea Merge pull request #902 from cfilby/fix-int64-marshalling
โ Add support for int64 IDs
โก๏ธ 13c3d922 Update id function
โ 37191779 Add more tests
0968e0cb Fix VSCode Weirdness, validate formatting
a20c96d5 More edits
e9e88b41 Stop double indending
๐ 9f4df68e More minor doc fixes
๐ 7abf0ac3 Fix documentation bug
e9730ab9 gofmt
๐ c3930f57 Remove redundant paren, add test
๐ 395fc85e Add support for int64 ids
๐ dbc88428 Merge pull request #889 from thnt/fix-init-with-schema-arg
๐ fix init not use custom schema filename
โ fc4e513f add test for https://github.com/vektah/gqlparser/pull/109
dd98bb13 fix init not use custom schema
๐ 4c35356c Merge pull request #883 from 99designs/handle-invalid-types
๐ฆ Gracefully handle invalid types from invalid go packages
- ๐ฆ 25b70271 Gracefully handle invalid types from invalid go packages
๐ 046054db Merge pull request #882 from 99designs/testserver-autobind
โ Use autobinding in testserver
- โ 12c963a4 Use autobinding in testserver
๐ 305116a0 Merge pull request #879 from coderste/patch-1
๐ Fixed broken GitHub link within the APQ page
๐ b4867b3f Fixed broken GitHub link within the APQ page
๐ Small documentation change to fix a broken GitHub link.
- ๐ 9f6b0ee4 v0.10.1 postrelease bump
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.10.1 Changes
September 25, 2019- ๐ efb6efe0 release v0.10.1
๐ 955f3499 Merge pull request #877 from 99designs/fix-websocket-client
๐ Fix websocket connections on test client
โ ef24a1cc Fix websocket connections on test client
๐ c997ec0c v0.10.0 postrelease bump
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.10.0 Changes
September 24, 2019- ๐ 75a83752 release v0.10.0
๐ 0bc3cc86 Merge pull request #875 from 99designs/fix-clientwide-opts
๐ Fix client global options
๐ง b43edf5d Merge pull request #874 from 99designs/configurable-slice-element-pointers
โ Add config option to omit pointers to slice elements
921aa9cf Fix client global options
d0098e60 Add config option to omit pointers to slice elements
๐ 01893280 Merge pull request #819 from 99designs/fix-directive-interface-nils
๐ Fix directives returning nils from optional interfaces
- 34d10975 Fix directives returning nils from optional interfaces
๐ eea38e55 Merge pull request #862 from qhenkart/fixes-shareable-link-setting
๐ fixes shareable link button in playground
๐ b5e78342 Merge pull request #870 from 99designs/ws-init-ctx
๐ Allow changing context in websocket init func
๐ 034aa627 Merge pull request #871 from 99designs/subscription-middleware
Call middleware and directives for subscriptions
๐ 7b41ca3c Merge pull request #872 from 99designs/autobind-prefix
๐ Allow prefixes when using autobind
๐ de8e559f Merge pull request #854 from wabain/nested-map-interface
๐ Fix for nested fields backed by map or interface
๐ cc64f331 Merge pull request #828 from 99designs/feat-rc
introduce RequestContext#Validate and use it instead of NewRequestContext function
๐ ed2a8536 Allow prefixes when using autobind
819cc71b Call middleware and directives for subscriptions
5a7c5903 Allow changing context in websocket init func
๐จ 17f32d28 Merge pull request #861 from 99designs/refactor-test-client
๐จ Refactor test client
โก๏ธ ed14cf04 Update playground.go
๐ fix formatting
โก๏ธ ee8d7a17 Update playground.go
๐ fix formatting
๐ 27389951 fixes shareable link button in playground
๐จ 4162d11e Refactor test client
8ed6ffc7 Fix for nested fields backed by map or interface
โก๏ธ 55b21442 Update stale.yml
feebee7d stalebot
๐ 7e643fdc Merge pull request #838 from 99designs/fix-directive-nil
๐ fix directives return nil handling
- ๐ f33e09e8 Merge branch 'master' into fix-directive-nil
๐ 8590edef Merge pull request #839 from 99designs/fix-nil-directive
๐จ refactor unimplemented directive handling
๐จ 1f7ed0d5 refactor unimplemented directive handling
94ad3f2e fix directives return nil handling
๐ 5c644a6f v0.9.3 postrelease bump
82758be8 fix error
edde2d03 add OperationName field to RequestContext
830e466e introduce RequestContext#Validate and use it instead of NewRequestContext function
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.9.3 Changes
August 16, 2019- ๐ a7bc468c release v0.9.3
๐ fc02cfe8 Merge pull request #829 from 99designs/fix-2directives
๐ fix go syntax issue when field has 2 directives
๐ 924f620c Merge pull request #831 from yudppp/patch-1
๐ Fixed scalar reference documentation
๐ ca4cc732 Fixed scalar documents
cc9fe145 fix go syntax issue when field has 2 directives
๐ 6b70be03 v0.9.2 postrelease bump
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.9.2 Changes
August 08, 2019- ๐ 4eeacc6e release v0.9.2
๐ 5628169d Merge pull request #822 from 99designs/windows-import-path-loop
๐ fix for windows infinite loop
๐ a861aa52 lint fix
๐ 6348a563 fix for windows infinite loop
๐ 12893fa4 Merge pull request #821 from 99designs/fix-init
๐ Fix config loading during gqlgen init
- 5fafe79c Fix config loading during gqlgen init
๐ 2599f560 Merge pull request #820 from 99designs/keepalive-on-init
send keepalive on init
๐ 139e4e8d More directive docs
f93df340 send keepalive on init
๐ 8f0d9b48 Merge pull request #816 from nii236/patch-1
โก๏ธ Update cors.md to allow CORS for websockets
- 297e09c4 change origin check
๐ 410d8322 Merge pull request #805 from andrey1s/golangci
๐ enable-all linters on golangci-lint
๐ 504a96bc set enabled linters
๐ 91966ef4 add example to lint
bcddd7aa fix typo in readme
โก๏ธ cce06f1d update lint in circleci
๐ da1c208e Merge pull request #795 from oshalygin/feature/issue-794-resolve-dead-readme-link
โก๏ธ Update GraphQL Reference Link
๐ 8343c32c Merge pull request #784 from y15e/add-missing-header
โ Add a missing "Upload" header
๐ 8302463f Merge pull request #797 from muesli/format-fixes
Format import order using goimports
๐ f2825e09 Merge pull request #801 from Schparky/patch-1
๐ Documentation: getting-started edits
๐ 3db5627f Merge pull request #807 from flrossetto/patch-1
๐ Fix doc
- โก๏ธ ab228f1b Update cors.md to allow CORS for websockets
c4ac9347 Fix doc
map[string]{interface} -> map[string]interface{}
fbbed5b8 use alias when invalid pkg name
๐ 2591ea36 fix lint prealloc
๐ 3b0e44fe fix lint misspell
๐ 6ff62b61 fix lint gocritic
๐ cb7f482b fix lint unparam
๐ 620552be fix lint goimports
โก๏ธ 477e804e update config golangci
5b203bcc clarify where the go:generate line should be added
2a3df24e Replace the -v flag as described below.
f3eeb639 Clarify that the schema file will be generated
3ac17960 Missing '*' in Todos resolver example
bd598c2c Format import order using goimports
โก๏ธ 419f966d Update GraphQL Reference Link (closes #794)
- โก๏ธ The link in the readme has been updated to reference a post by Ivรกn Corrales Solera, "Dive into GraphQL". The previous link does not resolve, likely because the personal site is no longer hosted.
๐ 373359de Merge pull request #781 from 99designs/fix-default-directives-init
0๏ธโฃ Set default directives after parsing config
ca8b21e3 Add a missing header
0๏ธโฃ 8cab5fba Set default directives after parsing config
๐ d2c5bf2a Merge pull request #780 from zdebra/master
๐ fixed generating a description to golang comments for enum type
๐ bf2cc90e Merge pull request #768 from 99designs/fix-ptr-from-directive
๐ Fix pointer returns from directive
๐ 446c3df3 fixed generating a description to golang comments for enum type
๐ 414a4d34 Merge pull request #771 from sunfmin/master
4d1484b0 Fix doc for how to use @goField directives forceResolver option
6f3d7310 Fix pointer returns from directive
๐ 21b65112 v0.9.1 postrelease bump
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.9.1 Changes
June 27, 2019- ๐ b128a291 release v0.9.1
๐ 1bbc0cd6 Update release process to keep tags on master
this was affecting the version shown in go modules when using commits
๐ 5ffc2975 Merge pull request #764 from 99designs/fix-field-directives-on-roots
๐ fix field schema directives applied to roots
- ef3830b5 fix field schema directives applied to roots
๐ 17ee40ba Merge pull request #761 from 99designs/autobinding
Autobind models
- b716bfac Autobind models
๐ fc3755f1 Merge pull request #732 from 99designs/schemaconfig-plugin
โ Add a plugin for configuring gqlgen via directives
๐ c14f8650 Add docs
๐ 64aca616 Merge remote-tracking branch 'origin/master' into schemaconfig-plugin
๐ 5e7e94c8 Merge pull request #756 from andrey1s/field
generate field defenition and execute field directive
๐ ad2ca304 Merge pull request #759 from 99designs/circle-workflows
CircleCI workflows
- 0fc822ca CircleCI workflows
๐ 2dc8423b Merge pull request #758 from franxois/patch-1
โก๏ธ Update dataloaders.md
โก๏ธ d0db28ab Update dataloaders.md
๐ Make SQL request use requested IDs
โ a58ecfe9 add example and test field directive
โก๏ธ 526beecb update generate field
6e9d7dab generate types directive by location
dfec7b68 define fieldDefinition template
be890ab9 use UnmarshalFunc in args directives implement
dd162f04 define implDirectives template
๐ 56f3f92b Merge pull request #755 from 99designs/fix-globbing-windows
๐ fix globbing on windows
- ๐ a4480fb0 fix globbing on windows
๐ ba176e2e Merge pull request #754 from 99designs/coveralls
โ Add coveralls
- f28ed264 Add coveralls
๐ f4a69ab5 Merge pull request #744 from andrey1s/directive
โ add Execute QUERY/MUTATION/SUBSCRIPTION Directives
- โ dbd2cc6e simplify resolver test
๐ง 7fed71b6 Merge pull request #728 from fgallina/make-generated-resolver-dependent-types-follow-configured-type
resolvergen: use the resolver type as base name for dependent types
๐ cb284c56 Merge pull request #734 from DBL-Lee/master
Automatic Persisted Queries
๐ 726a94f4 Merge pull request #750 from 99designs/ws-connection-param-check
[websocket] Add a config to reject initial connection
- ๐ 69d7e282 move directive to directives.gotpl
๐ 090f0bd9 Merge pull request #722 from marwan-at-work/deps
resolve all pkg dependencies
โก๏ธ c397be0c Update websocketInitFunc to return error instead of boolean
โ be18ae1f Add a test
๐จ a6508b6d Update typing, function name and small code refactor
e6d791a9 Add websocketOnConnectFunc as a config that can be used to validate websocket init requests
c5acbead resolvergen: use the resolver type as base name for dependent types
The template was outputing invalid code since the resolver type was not used in places like the embedding at {query,mutation}Resolver.
This change also ensures that objects like {query,mutation}Resolver also use the user provided type name as suffix.
Here's the resulting diff on the code generation with
type: GeneratedResolver
in the resolver config:diff -u resolver.go resolvernew.go --- resolver.go 2019-05-26 20:04:15.361969755 -0300 +++ resolvernew.go 2019-05-26 20:04:54.170737786 -0300 @@ -7,20 +7,20 @@ type GeneratedResolver struct{} func (r *GeneratedResolver) Mutation() MutationResolver { - return &mutationResolver{r} + return &mutationGeneratedResolver{r} } func (r *GeneratedResolver) Query() QueryResolver { - return &queryResolver{r} + return &queryGeneratedResolver{r} } -type mutationResolver struct{ *Resolver } +type mutationGeneratedResolver struct{ *GeneratedResolver } -func (r *mutationResolver) CreateTodo(ctx context.Context, input NewTodo) (*Todo, error) { +func (r *mutationGeneratedResolver) CreateTodo(ctx context.Context, input NewTodo) (*Todo, error) { panic("not implemented") } -type queryResolver struct{ *Resolver } +type queryGeneratedResolver struct{ *GeneratedResolver } -func (r *queryResolver) Todos(ctx context.Context) ([]*Todo, error) { +func (r *queryGeneratedResolver) Todos(ctx context.Context) ([]*Todo, error) { panic("not implemented") }
โก๏ธ cfdbc39a update QueryDirectives
f32571ee add SUBSCRIPTION Directive
โก๏ธ 32462d0f update example todo add directive with location QUERY and MUTATION
3eec887a add Execute QUERY/MUTATION/SUBSCRIPTION Directives
8fcc1868 format
๐ e0e1e318 Merge pull request #1 from radev/master
๐ Support for external APQ cache
๐ 9873d998 Add APQ documentation with example
๐ 48292c10 Support pluggable APQ cache implementations.
694f90aa Merge pull request #717 from cbelsole/schema_file_globbing (closes #631)
9be5aad0 Don't inject builtins during schema config
๐ 8dc17b47 support GET for apq
๐ d36932c5 support automatic persisted query
๐ de75743c Add plugin for providing config via schema directives
17a82c37 Provide config to skip generating runtime for a directive
๐ ba7092c5 Merge pull request #724 from saint1991/patch-1
โ added a missing close bracket
9c1f8f2a added a missing close bracket
3dd8baf5 resolve all pkg dependencies
๐ 1617ff28 Merge pull request #718 from hh/fix-docs (closes #714)
๐ 9d332a7d Fixing getting-started documentation
โก๏ธ 39db1477 updated docs
e32c82be cleanup
๐ e9389ef8 added schema file globbing fixes #631
๐ 4f163cbc Merge pull request #713 from 99designs/faq
โ Add faq section
- 3a21b369 Add faq section
<!-- end of Commits --> <!-- end of Else -->
<!-- end of If NoteGroups -->
-
v0.9.0 Changes
May 15, 2019- ๐ ea4652d2 release v0.9.0
๐ f3c8406d Merge pull request #710 from 99designs/slice-pointers
๐ Use pointers to structs inside slices
e669d476 fix imports for vendor based projects
315141d9 Use pointers to structs inside slices
๐ 9a6a10ab Merge pull request #706 from 99designs/mapping-primitive
๐ Fix mapping object types onto go primitives
a5120054 fix binding to primitive non leaf types
โ b0cd95a1 Test mapping object types onto go string
๐ eaa61bb5 Merge pull request #707 from 99designs/gomodules-performance
๐ make gqlgen generate 10x faster in some projects
๐ ab961ce0 Merge pull request #705 from 99designs/fix-error-race
๐ Fix a data race when handling concurrent resolver errors
71cc8554 make gqlgen generate 10x faster in projects with cgo
โ cab4babe Test mapping object types onto go primitives
962470de Fix a data race when handling concurrent resolver errors
๐ 9ca43ba9 Merge pull request #701 from 99designs/modelgen-pointers
๐ Use pointers when embedding structs in generated structs
- 4f5e9cf0 always use pointers when refering to structs in generated models
๐ e2ac8480 Merge pull request #704 from tul/doc-typo
๐ Fix typo
- 80ebe644 Fix typo
๐ 0bd90809 Merge pull request #700 from 99designs/fix-interface-caseing
๐ Fix interface casing
๐ 5586ee2c Merge pull request #702 from 99designs/drop-automatic-zeroisnull
โฌ๏ธ Drop automatic conversion of IsZero to null
75aa99ad Drop automatic conversion of IsZero to null
46c40b74 Fix interface casing (closes #694)
๐ e49d44f7 Merge pull request #689 from tgwizard/enforce-request-content-type
Enforce content type for POST requests
78f277e9 run go generate
๐ d4b3de3a Merge remote-tracking branch 'origin/master' into enforce-request-content-type
๐ f8ef6d2e Merge pull request #668 from mbranch/complexity
๐ Fix: complexity case selection
๐ c4805049 Merge pull request #655 from hantonelli/file-upload
File upload
5d1dea0a run go generate
๐ 8a0c34a4 Merge branch 'master' into file-upload
๐ 4e359aa2 Merge pull request #686 from qhenkart/master
โ Adds default custom scalar of interface{}
โก๏ธ aeccbce0 Update test include an example that uses io.Read interface directly
๐ d9dca642 Improve documentation
f30f1c31 Fix fmt
54226cdb Add bytesReader to reuse read byte array
02e9dd8e Fix complexity case selection
๐ Use the GraphQL field name rather than the Go field name in the generated
Complexity
func.Before this patch, overloading complexity funcs was ineffective because they were never executed.
It also ensures that overlapping fields are now generated; mapping all possible field names to the associated complexity func.
- ๐ bf2d07a4 moves naming convention to a non-go standard
๐ d1e8acda Merge pull request #687 from stereosteve/fix-includeDeprecated
๐ Fix: omit deprecated fields when includeDeprecated=false
f7d0b9c8 Enforce content type for POST requests
๐ 7d0b8eec Fix: omit deprecated fields when includeDeprecated=false
๐ 89c87345 fix grammar in docs
85643f5d fix import
โก๏ธ ca96a155 update docs
1de25d0c adds interface scalar type
43fc53f9 Improve variable name
๐ b961d34e Remove wrapper that is now not required
๐ bb023476 Lint code
f8484159 Modify graphql.Upload to use io.ReadCloser. Change the way upload files are managed.
โช 0306783e Revert "Change graphql.Upload File field to FileData."
โช This reverts commit 7ade7c2
๐ afe33f73 Merge pull request #680 from asp24/collect-fields-performance
๐ Better CollectFields performance
๐ 7ba1b3b2 graphql.CollectFields now accept *RequestContext as first arg It was done because RequestContext is a part of executionContext and can be passed directly without extraction from ctx. This is increasing performance when model depth is high
5dfa2285 Pre-allocate mem for collectFields() method result slice
88cdbdf1 Rename getOrCreateField to getOrCreateAndAppendField to describe behaviour
a74abc47 Early return in shouldIncludeNode if directives empty
7ade7c21 Change graphql.Upload File field to FileData.
โ da52e810 Extend test and don't close form file.
๐ 1c95d42a Merge pull request #678 from jonatasbaldin/gin-context-recipe
๐ Fix unset key and comment block at Gin recipe docs
- 0b39c445 Fix unset key and comment block
๐ 5aa6a20b Merge pull request #673 from marwan-at-work/tpl
codegen/templates: allow templates to be passed in options instead ofโฆ
37fd067e fix typo
๐ฆ e69b7399 add docs to the templates package
๐ 8cae895b Merge pull request #676 from jonatasbaldin/gin-context-recipe
โ Add recipe to use gin.Context
โก๏ธ 40c7b952 update test name
5418a290 Add recipe to use gin.Context
โ 16f392ee add unit test
a0ee7172 codegen/templates: allow templates to be passed in options instead of os files
๐ 2cf7f452 Fix comments (add request size limit, remove useless comments, improve decoding and function signature, improve documentation)
๐ 5ff60925 Merge pull request #665 from ezeql/patch-1
โก๏ธ update README.md
โก๏ธ b42e1ba6 update README.md
๐ fix link
โ d3770395 Fix tests.
๐ 2c1f8573 Fix lint errors.
73b3a536 Fmt graphql.go
โ 83cde4b6 Fix tests. Improve code format.
โก๏ธ 425849a6 Improve fileupload example readme. Update scalars.md. Add file-upload.md
๐ง 849d4b1e Make uploadMaxMemory configurable
fc318364 Improve format, inline const.
๐ 662dc337 Move Upload to injected if defined in the schema as scalars
๐ f244442e Fix merge. Remove regexp check.
๐ bf79bc92 Merge branch 'master' into next