graphql-tools-fork
Advanced tools
Comparing version 6.1.3 to 6.1.4
@@ -5,2 +5,11 @@ # Changelog | ||
### [6.1.4](https://github.com/yaacovCR/graphql-tools-fork/compare/v6.1.3...v6.1.4) (2019-07-05) | ||
### Bug Fixes | ||
* **stitching:** do not convert falsy values to null. ([26c5d67](https://github.com/yaacovCR/graphql-tools-fork/commit/26c5d67)), closes [#10](https://github.com/yaacovCR/graphql-tools-fork/issues/10) | ||
### [6.1.3](https://github.com/yaacovCR/graphql-tools-fork/compare/v6.1.2...v6.1.3) (2019-07-03) | ||
@@ -11,3 +20,3 @@ | ||
* **stitching:** fix lists of enum and custom scalars, closes [#9](https://github.com/yaacovCR/graphql-tools-fork/issues/9) ([0d173b9](https://github.com/yaacovCR/graphql-tools-fork/commit/0d173b9)) | ||
* **stitching:** fix lists of enum and custom scalars, closes [#8](https://github.com/yaacovCR/graphql-tools-fork/issues/8) ([0d173b9](https://github.com/yaacovCR/graphql-tools-fork/commit/0d173b9)) | ||
@@ -14,0 +23,0 @@ |
import { GraphQLResolveInfo, ExecutionResult, GraphQLError } from 'graphql'; | ||
export declare function checkResultAndHandleErrors(result: ExecutionResult, info: GraphQLResolveInfo, responseKey?: string): any; | ||
export declare function handleResult(info: GraphQLResolveInfo, resultObject: any, errors: ReadonlyArray<GraphQLError>): any; | ||
export declare function handleResult(info: GraphQLResolveInfo, result: any, errors: ReadonlyArray<GraphQLError>): any; |
@@ -20,4 +20,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkResultAndHandleErrors = checkResultAndHandleErrors; | ||
function handleResult(info, resultObject, errors) { | ||
if (!resultObject) { | ||
function handleResult(info, result, errors) { | ||
if (result == null) { | ||
if (errors.length) { | ||
@@ -32,5 +32,5 @@ throw errors_1.relocatedError(errors_1.combineErrors(errors), info.fieldNodes, graphql_1.responsePathAsArray(info.path)); | ||
if (graphql_1.isObjectType(nullableType) || graphql_1.isListType(nullableType)) { | ||
errors_1.annotateWithChildrenErrors(resultObject, errors); | ||
errors_1.annotateWithChildrenErrors(result, errors); | ||
} | ||
return parseOutputValue(nullableType, resultObject); | ||
return parseOutputValue(nullableType, result); | ||
} | ||
@@ -37,0 +37,0 @@ exports.handleResult = handleResult; |
{ | ||
"name": "graphql-tools-fork", | ||
"version": "6.1.3", | ||
"version": "6.1.4", | ||
"description": "Forked graphql-tools, still more useful tools to create and manipulate GraphQL schemas.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
461311