You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VSCode using gopls, I got this warning that display
unused parameter: sel
That is caused by sel param not used
// generated.go...func (ec*executionContext) marshalNBoolean2bool(
ctx context.Context,
sel ast.SelectionSet, // <= this partvbool,
) graphql.Marshaler {
res:=graphql.MarshalBoolean(v)
ifres==graphql.Null {
if!graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
}
}
returnres
}
...
What did you expect?
I need the VSCode warning to dissappear, it's annoying and messup development experience.
The variable should be used or removed, but I can't change that because it is an auto generated file.
But I can't exclude that from gopls either. I have tried. To elaborate, I opened a question about it on StackOverflow: https://stackoverflow.com/questions/79135399/exclude-directory-or-file-in-gopls
What happened?
Afer running
gqlgen generate
In VSCode using gopls, I got this warning that display
That is caused by
sel
param not usedWhat did you expect?
I need the VSCode warning to dissappear, it's annoying and messup development experience.
The variable should be used or removed, but I can't change that because it is an auto generated file.
But I can't exclude that from
gopls
either. I have tried. To elaborate, I opened a question about it on StackOverflow:https://stackoverflow.com/questions/79135399/exclude-directory-or-file-in-gopls
Minimal graphql.schema and models to reproduce
versions
The text was updated successfully, but these errors were encountered: