Pavel Nikolov

Results 166 comments of Pavel Nikolov

It seems that input object's fields can be set to [variables](https://spec.graphql.org/October2021/#sec-Language.Variables) and variables in turn can have default values. That would solve your problem.

> This would end up being a pointer to an int32 in the resolver, but then with the current version the resolver would choke trying to assign the default value...

> This would end up being a pointer to an int32 in the resolver, but then with the current version the resolver would choke trying to assign the default value...

@sanae10001 I started working on this and will try to add it to the next release. I like your code and I will copy some portion of it.

I'd appreciate a failing unit test or a piece of code that I can run and execute requests against to better understand the problem.

I tested with one more example: ```go package main import ( "fmt" "log" "net/http" graphql "github.com/graph-gophers/graphql-go" "github.com/graph-gophers/graphql-go/relay" ) type query struct{} func (query) Test(args struct{ Num graphql.NullInt }) string {...

Closing this issue since #400 takes care of it.

> I wanted to ask you if you'd consider deviating from spec to implement this optimization No, unfortunately we don't want to deviate from the spec. You can propose a...

Hi, @ne0h12 Sorry for the late reply on this PR. Thank you for your effort but I don't feel that the complexity implementation should look like this. Instead after merging...