@effect-gql/core 1.4.11 → 1.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builder/index.cjs +2 -1
- package/builder/index.cjs.map +1 -1
- package/builder/index.js +2 -1
- package/builder/index.js.map +1 -1
- package/index.cjs +2 -1
- package/index.cjs.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -975,7 +975,8 @@ function toGraphQLArgsWithRegistry(schema, enumRegistry, inputRegistry, inputs,
|
|
|
975
975
|
enums,
|
|
976
976
|
cache
|
|
977
977
|
);
|
|
978
|
-
|
|
978
|
+
const isOptionField = isOptionTransformation(field2.type) || isOptionDeclaration(field2.type);
|
|
979
|
+
if (!field2.isOptional && !isOptionField) {
|
|
979
980
|
fieldType = getNonNull(fieldType);
|
|
980
981
|
}
|
|
981
982
|
args[fieldName] = { type: fieldType };
|