diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 33d3060..c6a7827 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -30,6 +30,7 @@ When releasing a new version: - Fixed non-deterministic generated code when querying graphql interfaces. - Fixed generated code when last component of package name is not a valid identifier (e.g. `"path/to/my-package"`). +- Fixed incorrect documentation of `for` directive. ## v0.5.0 diff --git a/docs/genqlient_directive.graphql b/docs/genqlient_directive.graphql index e06945d..7ef9379 100644 --- a/docs/genqlient_directive.graphql +++ b/docs/genqlient_directive.graphql @@ -63,7 +63,9 @@ directive genqlient( # # @genqlient(for: "MyInput.myField", omitempty: true) # # @genqlient(for: "MyInput.myOtherField", pointer: true) # # @genqlient(for: "MyOutput.id", bind: "path/to/pkg.MyOutputID") - # query MyQuery($arg: MyInput) { ... } + # query MyQuery( + # $arg: MyInput + # ) { ... } # genqlient will generate a type # type MyInput struct { # MyField `json:"myField,omitempty"`