@coex/graphql-vercajk
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -12,3 +12,3 @@ import { parse, visit } from "graphql"; | ||
const fieldName = field.name.value; | ||
const isRequired = field.type.kind === "NonNullType"; | ||
const isRequired = field.type.kind === "NonNullType" && !field.defaultValue; | ||
const childInputName = getNamedInputType(field); | ||
@@ -15,0 +15,0 @@ const children = childInputName ? fieldInfo[childInputName] : null; |
{ | ||
"name": "@coex/graphql-vercajk", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Collection of graphql tools", | ||
@@ -5,0 +5,0 @@ "bin": { |
11647