@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.js CHANGED
@@ -913,7 +913,8 @@ function toGraphQLArgsWithRegistry(schema, enumRegistry, inputRegistry, inputs,
913
913
  enums,
914
914
  cache
915
915
  );
916
- if (!field2.isOptional) {
916
+ const isOptionField = isOptionTransformation(field2.type) || isOptionDeclaration(field2.type);
917
+ if (!field2.isOptional && !isOptionField) {
917
918
  fieldType = getNonNull(fieldType);
918
919
  }
919
920
  args[fieldName] = { type: fieldType };