Skip to content

Commit

Permalink
fix(TypeMapper): create proper GraphQLDirective args' types from SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed May 4, 2019
1 parent b66a04d commit abae96c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
"runtimeArgs": ["--nolazy"], // tells v8 to compile your code ahead of time, so that breakpoints work correctly
"disableOptimisticBPs": true // also helps that breakpoints work correctly
}
]
}
2 changes: 1 addition & 1 deletion src/TypeMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ export class TypeMapper<TContext> {
let val;
const wrappedType = this.typeFromAST(value.type);
if (TypeMapper.isInputType(wrappedType)) {
val = { type: wrappedType, description: getDescription(value) };
val = { type: wrappedType.getType(), description: getDescription(value) };
} else {
throw new Error('Non-input type as an argument.');
}
Expand Down

0 comments on commit abae96c

Please sign in to comment.