Comparing version 0.1.8 to 0.1.9
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.9](https://github.com/forsigner/gqlgen/compare/v0.1.8...v0.1.9) (2020-05-12) | ||
### Bug Fixes | ||
* fix function args if input ([d6bb2e0](https://github.com/forsigner/gqlgen/commit/d6bb2e0bce4cba944799e5a18e6bab75ffc44c63)) | ||
### [0.1.8](https://github.com/forsigner/gqlgen/compare/v0.1.7...v0.1.8) (2020-05-06) | ||
@@ -7,0 +14,0 @@ |
@@ -72,4 +72,6 @@ "use strict"; | ||
statements = ` | ||
const params = typeof args === 'function' ? args() : args | ||
return ${action}<${T}>(${gqlName}, { ...opt, variables: { input: params } }) | ||
return ${action}<${T}>(${gqlName}, { ...opt, variables: () => { | ||
const params = typeof args === 'function' ? args() : args | ||
return { input: params } | ||
}}) | ||
`; | ||
@@ -76,0 +78,0 @@ // 多参数,或者不叫 input |
{ | ||
"name": "gqlgen", | ||
"description": "gqlgen", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"author": "forsigner", | ||
@@ -6,0 +6,0 @@ "bin": { |
51487
1190