relay-compiler 10.1.2 → 10.1.3

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.
@@ -164,7 +164,10 @@ function visitLinkedField(field: LinkedField): LinkedField {
164
164
  }
165
165
  const schema = this.getContext().getSchema();
166
166
  if (edgeDirective) {
167
- const fields = schema.getFields(transformedField.type);
167
+ const fieldType = schema.isList(transformedField.type)
168
+ ? transformedField.type.ofType
169
+ : transformedField.type;
170
+ const fields = schema.getFields(fieldType);
168
171
  let cursorFieldID;
169
172
  let nodeFieldID;
170
173
  for (const fieldID of fields) {