-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.4.0 Release #247
Merged
0.4.0 Release #247
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Integrate gqlparser
Use shared prelude
Update gqlparser for validation locations
Bump gqlparser to get schema validation
introduce gen & init subcommand
This is a snowflake implementation for skip/include directives based on the graphql-js implementation. Skip takes precedence here.
Adds a set of test cases for skip and include directives to the todo example. Also now conforms to spec if both are included.
Internally it can still get to RequestContext as required.
In recent refactor we introduced a new pattern of resolvers which is better structured and more readable. To keep Gqlgen backward compatible we started generate two styles of resolvers side by side. It is now time to sunset the old resolver. This commit removes the old resolver and update the generation code to use the new resolver directly.
* chat * dataloader * scalar * selection * starwars * todo
turn back -race option
Remove old resolvers
Add model field mapping
Use fonts from golang styleguide
Make more golint free generated code
Directive args
Fix introspection
Add implicit value to array coercion
New feature docs
use json.Decoder.UseNumber() when unmarshalling vars
Move doc site
Rewrite import paths
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We are getting ready to ship 0.4.0. Lots of changes, we are doing some internal testing now.
Updating to 0.4.0 is going to require a few things:
github.com/vektah/gqlgen
to point togithub.com/99designs/gqlgen
dep ensure -update github.com/99designs/gqlgen github.com/vektah/gqlparser
graph.NewExecutableSchema(&graph.Graph...)
tograph.NewExecutableSchema(graph.Config{Resolvers: &graph.Graph...})
go generate ./...
Removed
Changed
github.com/vektah/gqlgen
togithub.com/99designs/gqlgen
Map
orTime
you will need to addscalar Map
to your schema. The default implementations are still provided, but the type isn't being included automatically in the schema.Added
gqlgen init
: You can now create a project skeleton quickly and easilygqlgen
will now generate resolver stubs if you specify the new resolver config key.@skip
and@include
Fixed