graphql-fields
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -44,2 +44,8 @@ 'use strict'; | ||
switch (arg.kind) { | ||
case 'FloatValue': | ||
return parseFloat(arg.value); | ||
case 'IntValue': | ||
return parseInt(arg.value, 10); | ||
case 'Variable': | ||
@@ -53,2 +59,8 @@ return info.variableValues[arg.name.value]; | ||
case 'ObjectValue': | ||
return arg.fields.reduce(function (argValue, objectField) { | ||
argValue[objectField.name.value] = getArgumentValue(objectField.value, info); | ||
return argValue; | ||
}, {}); | ||
default: | ||
@@ -55,0 +67,0 @@ return arg.value; |
# Changelog | ||
## 2.0.3 (2019-03-02) | ||
### Fixed | ||
- process object arguments | ||
## 2.0.2 (2019-02-28) | ||
@@ -5,0 +10,0 @@ |
{ | ||
"name": "graphql-fields", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Turns GraphQLResolveInfo into a map of the requested fields", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11421
127