gqlgen v0.10.2 Release Notes

Release Date: 2019-11-28 // over 4 years ago
    • ๐Ÿš€ 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 in interface.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

    ๐Ÿ”€ 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 -->