github.com/pouriasharifi/gqlgen@v0.7.2/codegen/templates/args.gotpl (about)

     1  	args := map[string]interface{}{}
     2  	{{- range $i, $arg := . }}
     3  		var arg{{$i}} {{$arg.Signature }}
     4  		if tmp, ok := rawArgs[{{$arg.GQLName|quote}}]; ok {
     5  			var err error
     6  			{{$arg.Unmarshal (print "arg" $i) "tmp" }}
     7  			if err != nil {
     8  				return nil, err
     9  			}
    10  		}
    11  		args[{{$arg.GQLName|quote}}] = arg{{$i}}
    12  	{{- end }}
    13  	return args, nil