netlify-onegraph-internal
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -15,2 +15,3 @@ import { DocumentNode } from "graphql"; | ||
name: string; | ||
isNullable: boolean; | ||
type: OutType; | ||
@@ -17,0 +18,0 @@ description?: Maybe<string>; |
@@ -257,2 +257,3 @@ "use strict"; | ||
description: "Any data retrieved by the function will be returned here [Placeholder]", | ||
isNullable: false, | ||
type: { | ||
@@ -267,2 +268,3 @@ kind: "scalar", | ||
description: "Any errors in the function will be returned here [Placeholder]", | ||
isNullable: true, | ||
type: { | ||
@@ -343,2 +345,3 @@ kind: "array", | ||
var namedType = (0, graphql_1.getNamedType)(gqlType); | ||
var isNullable = (0, graphql_1.isNullableType)(gqlType); | ||
var subSelectionSet = selection.selectionSet; | ||
@@ -355,2 +358,3 @@ if ((0, graphql_1.isWrappingType)(gqlType)) { | ||
description: field.description, | ||
isNullable: isNullable, | ||
type: value, | ||
@@ -366,2 +370,3 @@ }; | ||
description: field.description, | ||
isNullable: isNullable, | ||
type: scalar, | ||
@@ -381,2 +386,3 @@ }; | ||
description: field.description, | ||
isNullable: isNullable, | ||
type: value, | ||
@@ -393,2 +399,3 @@ }; | ||
description: field.description, | ||
isNullable: isNullable, | ||
type: value, | ||
@@ -494,2 +501,3 @@ }; | ||
description: "Any data from the function will be returned here", | ||
isNullable: false, | ||
type: sub, | ||
@@ -501,2 +509,3 @@ }, | ||
description: "Any errors from the function will be returned here", | ||
isNullable: true, | ||
type: { | ||
@@ -529,3 +538,3 @@ kind: "array", | ||
: ""; | ||
return "" + description + fieldSelection.name + ": " + value + ";"; | ||
return "" + description + fieldSelection.name + (fieldSelection.isNullable ? "?" : "") + ": " + value + ";"; | ||
}) | ||
@@ -593,2 +602,3 @@ .join("\n "); | ||
var _a; | ||
var _b; | ||
if (selection.kind === graphql_1.Kind.FRAGMENT_SPREAD) { | ||
@@ -625,3 +635,3 @@ var fragmentName = selection.name.value; | ||
var parentNamedType = (0, graphql_1.getNamedType)(type); | ||
var alias = (_a = selection.alias) === null || _a === void 0 ? void 0 : _a.value; | ||
var alias = (_b = selection.alias) === null || _b === void 0 ? void 0 : _b.value; | ||
var name_2 = selection.name.value; | ||
@@ -642,4 +652,4 @@ var displayedName = alias || name_2; | ||
inlineFragments: [], | ||
selections: { | ||
displayedName: { | ||
selections: (_a = {}, | ||
_a[displayedName] = { | ||
kind: "scalar", | ||
@@ -649,3 +659,3 @@ description: "Internal GraphQL field", | ||
}, | ||
}, | ||
_a), | ||
}; | ||
@@ -655,2 +665,3 @@ } | ||
var namedType = (0, graphql_1.getNamedType)(gqlType); | ||
var isNullable = (0, graphql_1.isNullableType)(gqlType); | ||
var subSelectionSet = selection.selectionSet; | ||
@@ -667,2 +678,3 @@ if ((0, graphql_1.isWrappingType)(gqlType)) { | ||
type: value, | ||
isNullable: isNullable, | ||
description: field.description, | ||
@@ -678,2 +690,3 @@ }; | ||
type: scalar, | ||
isNullable: isNullable, | ||
description: field.description, | ||
@@ -693,2 +706,3 @@ }; | ||
type: value, | ||
isNullable: isNullable, | ||
description: field.description, | ||
@@ -705,2 +719,3 @@ }; | ||
type: value, | ||
isNullable: isNullable, | ||
description: field.description, | ||
@@ -707,0 +722,0 @@ }; |
{ | ||
"name": "netlify-onegraph-internal", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Internal tools for use by Netlify", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
462902
6029