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.
Per vektah/gqlparser#234 and vektah/gqlparser#99 and vektah/gqlparser#100
In gqlparser all methods which were returning an error were using the explicit struct type (e.g. *gqlerror.Error or gqlerror.List). As long as you used the explicit types everything was fine, but as soon as you converted them to the
error
interface type, nil checks would fail. As a result, gqlparser recently was changed to returnerror
interface, so we need to perform a type assertion to convert it to*gqlerror.Error
in some places. It seems to me like this is a fairly minor change for those using gqlgen directly. What do you think?The current gqlgen release version is v0.17.15. If this is deemed enough of a breaking change, we can release this as v0.18.0,
otherwise, I will proceed with v0.17.16
Signed-off-by: Steve Coffman steve@khanacademy.org