relay-compiler 10.1.2 → 10.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {