@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 CHANGED
@@ -935,7 +935,8 @@ function toGraphQLArgsWithRegistry(schema, enumRegistry, inputRegistry, inputs,
935
935
  enums,
936
936
  cache
937
937
  );
938
- if (!field2.isOptional) {
938
+ const isOptionField = isOptionTransformation(field2.type) || isOptionDeclaration(field2.type);
939
+ if (!field2.isOptional && !isOptionField) {
939
940
  fieldType = getNonNull(fieldType);
940
941
  }
941
942
  args[fieldName] = { type: fieldType };