@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/index.cjs CHANGED
@@ -975,7 +975,8 @@ function toGraphQLArgsWithRegistry(schema, enumRegistry, inputRegistry, inputs,
975
975
  enums,
976
976
  cache
977
977
  );
978
- if (!field2.isOptional) {
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 };