relay-runtime 0.0.0-main-e01b8404 → 0.0.0-main-449bb89b
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.js +1 -1
- package/lib/store/RelayReader.js +2 -3
- package/package.json +1 -1
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/RelayReader.js.flow +3 -3
|
@@ -483,8 +483,7 @@ class RelayReader {
|
|
|
483
483
|
if (!RelayFeatureFlags.ENABLE_RELAY_RESOLVERS) {
|
|
484
484
|
throw new Error('Relay Resolver fields are not yet supported.');
|
|
485
485
|
}
|
|
486
|
-
this._readResolverField(selection.field, record, data);
|
|
487
|
-
break;
|
|
486
|
+
return this._readResolverField(selection.field, record, data);
|
|
488
487
|
default:
|
|
489
488
|
(selection.field.kind: empty);
|
|
490
489
|
invariant(
|
|
@@ -499,7 +498,7 @@ class RelayReader {
|
|
|
499
498
|
field: ReaderRelayResolver,
|
|
500
499
|
record: Record,
|
|
501
500
|
data: SelectorData,
|
|
502
|
-
):
|
|
501
|
+
): mixed {
|
|
503
502
|
const {resolverModule, fragment} = field;
|
|
504
503
|
const storageKey = getStorageKey(field, this._variables);
|
|
505
504
|
const resolverID = ClientID.generateClientID(
|
|
@@ -575,6 +574,7 @@ class RelayReader {
|
|
|
575
574
|
|
|
576
575
|
const applicationName = field.alias ?? field.name;
|
|
577
576
|
data[applicationName] = result;
|
|
577
|
+
return result;
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
_readClientEdge(
|