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.
- package/bin/relay-compiler +6 -3
- package/core/CompilerError.js.flow +6 -1
- package/index.js +1 -1
- package/lib/core/CompilerError.js +3 -1
- package/lib/transforms/DeclarativeConnectionMutationTransform.js +2 -1
- package/package.json +2 -2
- package/relay-compiler.js +3 -3
- package/relay-compiler.min.js +3 -3
- package/transforms/DeclarativeConnectionMutationTransform.js.flow +4 -1
@@ -164,7 +164,10 @@ function visitLinkedField(field: LinkedField): LinkedField {
|
|
164
164
|
}
|
165
165
|
const schema = this.getContext().getSchema();
|
166
166
|
if (edgeDirective) {
|
167
|
-
const
|
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) {
|