Skip to content

Releases: 99designs/gqlgen

0.2.2

05 Jul 06:42
Compare
Choose a tag to compare

Deprecated

  • typemap.json has been deprecated in favour of .gqlgen.yml - #163

Fixed

  • Bug when using multiple gopaths - #151
  • Generate enums even if there are no models - #159
  • Circular references causing generation not to run - #166

0.2.1

26 Jun 09:18
cb87a2c
Compare
Choose a tag to compare

Added

  • Support for smaller resolver interfaces that don't use _ as a separator, see #106 and #134

Fixed

  • generated file header format, gofmt will now ignore these files #139
  • missing , when unpacking defaults in input objects #146
  • when importing a package use the real package name #147

0.2.0

21 Jun 10:33
d26ef2a
Compare
Choose a tag to compare

Added

  • Going forward we will start tracking change logs 🎉

Changes

Previously

type User {
    id Int!
    notes [Notes!]!
}

would generate only generate the ID, not the notes:

type User struct {
    id int
}

It now will generate exactly what is in the schema:

type User {
    id int
    notes []Notes
}

This feature was generating a lot of confusion with some expecting the notes field to be present. If you were relying on this behavior you should copy the old model out of the generated code and add it to your types.json.

A future release will add better support for explicitly configuring this behaviour. Proposed syntax is:

type User {
    id Int!
    notes [Notes!]! @resolver
}