Skip to content

0.2.0

Compare
Choose a tag to compare
@vektah vektah released this 21 Jun 10:33
· 2487 commits to master since this release
d26ef2a

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
}