relay-runtime 13.0.0-rc.1 → 13.0.0-rc.2
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/README.md +67 -0
- package/handlers/RelayDefaultHandlerProvider.js.flow +1 -1
- package/handlers/connection/ConnectionHandler.js.flow +1 -1
- package/handlers/connection/ConnectionInterface.js.flow +1 -1
- package/handlers/connection/MutationHandlers.js.flow +1 -1
- package/index.js +1 -1
- package/index.js.flow +1 -1
- package/lib/handlers/RelayDefaultHandlerProvider.js +1 -1
- package/lib/handlers/connection/ConnectionHandler.js +1 -1
- package/lib/handlers/connection/ConnectionInterface.js +1 -1
- package/lib/handlers/connection/MutationHandlers.js +1 -1
- package/lib/index.js +1 -1
- package/lib/multi-actor-environment/ActorIdentifier.js +1 -1
- package/lib/multi-actor-environment/ActorSpecificEnvironment.js +1 -1
- package/lib/multi-actor-environment/ActorUtils.js +1 -1
- package/lib/multi-actor-environment/MultiActorEnvironment.js +1 -1
- package/lib/multi-actor-environment/MultiActorEnvironmentTypes.js +1 -1
- package/lib/multi-actor-environment/index.js +1 -1
- package/lib/mutations/RelayDeclarativeMutationConfig.js +1 -1
- package/lib/mutations/RelayRecordProxy.js +1 -1
- package/lib/mutations/RelayRecordSourceMutator.js +1 -1
- package/lib/mutations/RelayRecordSourceProxy.js +1 -1
- package/lib/mutations/RelayRecordSourceSelectorProxy.js +1 -1
- package/lib/mutations/applyOptimisticMutation.js +1 -1
- package/lib/mutations/commitLocalUpdate.js +1 -1
- package/lib/mutations/commitMutation.js +1 -1
- package/lib/mutations/readUpdatableQuery_EXPERIMENTAL.js +5 -1
- package/lib/mutations/validateMutation.js +1 -1
- package/lib/network/ConvertToExecuteFunction.js +1 -1
- package/lib/network/RelayNetwork.js +1 -1
- package/lib/network/RelayNetworkTypes.js +1 -1
- package/lib/network/RelayObservable.js +1 -1
- package/lib/network/RelayQueryResponseCache.js +1 -1
- package/lib/network/wrapNetworkWithLogObserver.js +1 -1
- package/lib/query/GraphQLTag.js +1 -1
- package/lib/query/PreloadableQueryRegistry.js +1 -1
- package/lib/query/fetchQuery.js +1 -1
- package/lib/query/fetchQueryInternal.js +1 -1
- package/lib/query/fetchQuery_DEPRECATED.js +1 -1
- package/lib/store/ClientID.js +1 -1
- package/lib/store/DataChecker.js +1 -1
- package/lib/store/OperationExecutor.js +1 -1
- package/lib/store/RelayConcreteVariables.js +1 -1
- package/lib/store/RelayExperimentalGraphResponseHandler.js +3 -3
- package/lib/store/RelayExperimentalGraphResponseTransform.js +21 -21
- package/lib/store/RelayModernEnvironment.js +1 -1
- package/lib/store/RelayModernFragmentSpecResolver.js +1 -1
- package/lib/store/RelayModernOperationDescriptor.js +1 -1
- package/lib/store/RelayModernRecord.js +1 -1
- package/lib/store/RelayModernSelector.js +1 -1
- package/lib/store/RelayModernStore.js +1 -1
- package/lib/store/RelayOperationTracker.js +1 -1
- package/lib/store/RelayOptimisticRecordSource.js +1 -1
- package/lib/store/RelayPublishQueue.js +1 -1
- package/lib/store/RelayReader.js +1 -3
- package/lib/store/RelayRecordSource.js +1 -1
- package/lib/store/RelayRecordState.js +1 -1
- package/lib/store/RelayReferenceMarker.js +1 -1
- package/lib/store/RelayResponseNormalizer.js +1 -1
- package/lib/store/RelayStoreReactFlightUtils.js +1 -1
- package/lib/store/RelayStoreSubscriptions.js +1 -1
- package/lib/store/RelayStoreTypes.js +1 -1
- package/lib/store/RelayStoreUtils.js +1 -1
- package/lib/store/ResolverCache.js +1 -1
- package/lib/store/ResolverFragments.js +1 -1
- package/lib/store/StoreInspector.js +1 -1
- package/lib/store/TypeID.js +1 -1
- package/lib/store/ViewerPattern.js +1 -1
- package/lib/store/cloneRelayHandleSourceField.js +1 -1
- package/lib/store/cloneRelayScalarHandleSourceField.js +1 -1
- package/lib/store/createFragmentSpecResolver.js +1 -1
- package/lib/store/createRelayContext.js +1 -1
- package/lib/store/defaultGetDataID.js +1 -1
- package/lib/store/defaultRequiredFieldLogger.js +1 -1
- package/lib/store/hasOverlappingIDs.js +1 -1
- package/lib/store/isRelayModernEnvironment.js +1 -1
- package/lib/store/normalizeRelayPayload.js +1 -1
- package/lib/store/readInlineData.js +1 -1
- package/lib/subscription/requestSubscription.js +1 -1
- package/lib/util/JSResourceTypes.flow.js +1 -1
- package/lib/util/NormalizationNode.js +1 -1
- package/lib/util/ReaderNode.js +1 -1
- package/lib/util/RelayConcreteNode.js +1 -1
- package/lib/util/RelayDefaultHandleKey.js +1 -1
- package/lib/util/RelayError.js +1 -1
- package/lib/util/RelayFeatureFlags.js +1 -2
- package/lib/util/RelayProfiler.js +1 -1
- package/lib/util/RelayReplaySubject.js +1 -1
- package/lib/util/RelayRuntimeTypes.js +1 -1
- package/lib/util/StringInterner.js +1 -1
- package/lib/util/createPayloadFor3DField.js +1 -1
- package/lib/util/deepFreeze.js +1 -1
- package/lib/util/generateID.js +1 -1
- package/lib/util/getAllRootVariables.js +29 -0
- package/lib/util/getFragmentIdentifier.js +1 -1
- package/lib/util/getOperation.js +1 -1
- package/lib/util/getPaginationMetadata.js +1 -1
- package/lib/util/getPaginationVariables.js +1 -1
- package/lib/util/getPendingOperationsForFragment.js +1 -1
- package/lib/util/getRefetchMetadata.js +1 -1
- package/lib/util/getRelayHandleKey.js +1 -1
- package/lib/util/getRequestIdentifier.js +1 -1
- package/lib/util/getValueAtPath.js +1 -1
- package/lib/util/isEmptyObject.js +1 -1
- package/lib/util/isPromise.js +1 -1
- package/lib/util/isScalarAndEqual.js +1 -1
- package/lib/util/recycleNodesInto.js +1 -1
- package/lib/util/registerEnvironmentWithDevTools.js +1 -1
- package/lib/util/reportMissingRequiredFields.js +1 -1
- package/lib/util/resolveImmediate.js +1 -1
- package/lib/util/stableCopy.js +1 -1
- package/lib/util/withDuration.js +1 -1
- package/multi-actor-environment/ActorIdentifier.js.flow +1 -1
- package/multi-actor-environment/ActorSpecificEnvironment.js.flow +1 -1
- package/multi-actor-environment/ActorUtils.js.flow +1 -1
- package/multi-actor-environment/MultiActorEnvironment.js.flow +1 -1
- package/multi-actor-environment/MultiActorEnvironmentTypes.js.flow +1 -1
- package/multi-actor-environment/index.js.flow +1 -1
- package/mutations/RelayDeclarativeMutationConfig.js.flow +1 -1
- package/mutations/RelayRecordProxy.js.flow +1 -1
- package/mutations/RelayRecordSourceMutator.js.flow +1 -1
- package/mutations/RelayRecordSourceProxy.js.flow +1 -1
- package/mutations/RelayRecordSourceSelectorProxy.js.flow +1 -1
- package/mutations/applyOptimisticMutation.js.flow +1 -1
- package/mutations/commitLocalUpdate.js.flow +1 -1
- package/mutations/commitMutation.js.flow +1 -1
- package/mutations/readUpdatableQuery_EXPERIMENTAL.js.flow +10 -1
- package/mutations/validateMutation.js.flow +1 -1
- package/network/ConvertToExecuteFunction.js.flow +1 -1
- package/network/RelayNetwork.js.flow +1 -1
- package/network/RelayNetworkTypes.js.flow +1 -1
- package/network/RelayObservable.js.flow +1 -1
- package/network/RelayQueryResponseCache.js.flow +1 -1
- package/network/wrapNetworkWithLogObserver.js.flow +2 -3
- package/package.json +2 -2
- package/query/GraphQLTag.js.flow +2 -2
- package/query/PreloadableQueryRegistry.js.flow +3 -2
- package/query/fetchQuery.js.flow +8 -6
- package/query/fetchQueryInternal.js.flow +1 -1
- package/query/fetchQuery_DEPRECATED.js.flow +1 -1
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/ClientID.js.flow +1 -1
- package/store/DataChecker.js.flow +1 -1
- package/store/OperationExecutor.js.flow +1 -1
- package/store/RelayConcreteVariables.js.flow +1 -1
- package/store/RelayExperimentalGraphResponseHandler.js.flow +3 -6
- package/store/RelayExperimentalGraphResponseTransform.js.flow +16 -21
- package/store/RelayModernEnvironment.js.flow +1 -1
- package/store/RelayModernFragmentSpecResolver.js.flow +1 -1
- package/store/RelayModernOperationDescriptor.js.flow +1 -1
- package/store/RelayModernRecord.js.flow +1 -1
- package/store/RelayModernSelector.js.flow +1 -1
- package/store/RelayModernStore.js.flow +1 -1
- package/store/RelayOperationTracker.js.flow +1 -1
- package/store/RelayOptimisticRecordSource.js.flow +1 -1
- package/store/RelayPublishQueue.js.flow +1 -1
- package/store/RelayReader.js.flow +1 -8
- package/store/RelayRecordSource.js.flow +1 -1
- package/store/RelayRecordState.js.flow +1 -1
- package/store/RelayReferenceMarker.js.flow +1 -1
- package/store/RelayResponseNormalizer.js.flow +1 -1
- package/store/RelayStoreReactFlightUtils.js.flow +1 -1
- package/store/RelayStoreSubscriptions.js.flow +1 -1
- package/store/RelayStoreTypes.js.flow +1 -1
- package/store/RelayStoreUtils.js.flow +1 -1
- package/store/ResolverCache.js.flow +1 -1
- package/store/ResolverFragments.js.flow +1 -1
- package/store/StoreInspector.js.flow +1 -1
- package/store/TypeID.js.flow +1 -1
- package/store/ViewerPattern.js.flow +1 -1
- package/store/cloneRelayHandleSourceField.js.flow +1 -1
- package/store/cloneRelayScalarHandleSourceField.js.flow +1 -1
- package/store/createFragmentSpecResolver.js.flow +1 -1
- package/store/createRelayContext.js.flow +1 -1
- package/store/defaultGetDataID.js.flow +1 -1
- package/store/defaultRequiredFieldLogger.js.flow +1 -1
- package/store/hasOverlappingIDs.js.flow +1 -1
- package/store/isRelayModernEnvironment.js.flow +1 -1
- package/store/normalizeRelayPayload.js.flow +1 -1
- package/store/readInlineData.js.flow +1 -1
- package/subscription/requestSubscription.js.flow +1 -1
- package/util/JSResourceTypes.flow.js.flow +1 -1
- package/util/NormalizationNode.js.flow +1 -1
- package/util/ReaderNode.js.flow +1 -1
- package/util/RelayConcreteNode.js.flow +3 -3
- package/util/RelayDefaultHandleKey.js.flow +1 -1
- package/util/RelayError.js.flow +1 -1
- package/util/RelayFeatureFlags.js.flow +1 -3
- package/util/RelayProfiler.js.flow +1 -1
- package/util/RelayReplaySubject.js.flow +1 -1
- package/util/RelayRuntimeTypes.js.flow +1 -1
- package/util/StringInterner.js.flow +1 -1
- package/util/createPayloadFor3DField.js.flow +1 -1
- package/util/deepFreeze.js.flow +1 -1
- package/util/generateID.js.flow +1 -1
- package/util/getAllRootVariables.js.flow +36 -0
- package/util/getFragmentIdentifier.js.flow +1 -1
- package/util/getOperation.js.flow +1 -1
- package/util/getPaginationMetadata.js.flow +3 -6
- package/util/getPaginationVariables.js.flow +1 -1
- package/util/getPendingOperationsForFragment.js.flow +1 -1
- package/util/getRefetchMetadata.js.flow +3 -6
- package/util/getRelayHandleKey.js.flow +1 -1
- package/util/getRequestIdentifier.js.flow +1 -1
- package/util/getValueAtPath.js.flow +1 -1
- package/util/isEmptyObject.js.flow +1 -1
- package/util/isPromise.js.flow +1 -1
- package/util/isScalarAndEqual.js.flow +1 -1
- package/util/recycleNodesInto.js.flow +1 -1
- package/util/registerEnvironmentWithDevTools.js.flow +1 -1
- package/util/reportMissingRequiredFields.js.flow +1 -1
- package/util/resolveImmediate.js.flow +1 -1
- package/util/stableCopy.js.flow +1 -1
- package/util/withDuration.js.flow +1 -1
package/store/ClientID.js.flow
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -14,13 +14,10 @@ import type {
|
|
|
14
14
|
GraphModeResponse,
|
|
15
15
|
RecordChunk,
|
|
16
16
|
} from './RelayExperimentalGraphResponseTransform';
|
|
17
|
-
import type {
|
|
18
|
-
MutableRecordSource,
|
|
19
|
-
Record,
|
|
20
|
-
} from 'relay-runtime/store/RelayStoreTypes';
|
|
17
|
+
import type {MutableRecordSource, Record} from './RelayStoreTypes';
|
|
21
18
|
|
|
19
|
+
const RelayModernRecord = require('./RelayModernRecord');
|
|
22
20
|
const invariant = require('invariant');
|
|
23
|
-
const RelayModernRecord = require('relay-runtime/store/RelayModernRecord');
|
|
24
21
|
|
|
25
22
|
/**
|
|
26
23
|
* Given a stream of GraphMode chunks, populate a MutableRecordSource.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -10,30 +10,20 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import type {ActorIdentifier} from '../multi-actor-environment/ActorIdentifier';
|
|
13
|
-
import type {
|
|
14
|
-
import type {IncrementalDataPlaceholder} from './RelayStoreTypes';
|
|
13
|
+
import type {PayloadData} from '../network/RelayNetworkTypes';
|
|
15
14
|
import type {
|
|
16
|
-
DataID,
|
|
17
15
|
NormalizationField,
|
|
18
|
-
NormalizationSelector,
|
|
19
|
-
PayloadData,
|
|
20
|
-
} from 'relay-runtime';
|
|
21
|
-
import type {GetDataID} from 'relay-runtime/store/RelayResponseNormalizer';
|
|
22
|
-
import type {
|
|
23
16
|
NormalizationLinkedField,
|
|
24
17
|
NormalizationNode,
|
|
25
|
-
} from '
|
|
26
|
-
import type {Variables} from '
|
|
18
|
+
} from '../util/NormalizationNode';
|
|
19
|
+
import type {DataID, Variables} from '../util/RelayRuntimeTypes';
|
|
20
|
+
import type {NormalizationOptions} from './RelayResponseNormalizer';
|
|
21
|
+
import type {GetDataID} from './RelayResponseNormalizer';
|
|
22
|
+
import type {
|
|
23
|
+
IncrementalDataPlaceholder,
|
|
24
|
+
NormalizationSelector,
|
|
25
|
+
} from './RelayStoreTypes';
|
|
27
26
|
|
|
28
|
-
const {getLocalVariables} = require('./RelayConcreteVariables');
|
|
29
|
-
const {createNormalizationSelector} = require('./RelayModernSelector');
|
|
30
|
-
const invariant = require('invariant');
|
|
31
|
-
const {generateClientID} = require('relay-runtime');
|
|
32
|
-
const {
|
|
33
|
-
ROOT_TYPE,
|
|
34
|
-
TYPENAME_KEY,
|
|
35
|
-
getStorageKey,
|
|
36
|
-
} = require('relay-runtime/store/RelayStoreUtils');
|
|
37
27
|
const {
|
|
38
28
|
CLIENT_EXTENSION,
|
|
39
29
|
CONDITION,
|
|
@@ -42,7 +32,12 @@ const {
|
|
|
42
32
|
INLINE_FRAGMENT,
|
|
43
33
|
LINKED_FIELD,
|
|
44
34
|
SCALAR_FIELD,
|
|
45
|
-
} = require('
|
|
35
|
+
} = require('../util/RelayConcreteNode');
|
|
36
|
+
const {getLocalVariables} = require('./RelayConcreteVariables');
|
|
37
|
+
const {createNormalizationSelector} = require('./RelayModernSelector');
|
|
38
|
+
const {ROOT_TYPE, TYPENAME_KEY, getStorageKey} = require('./RelayStoreUtils');
|
|
39
|
+
const invariant = require('invariant');
|
|
40
|
+
const {generateClientID} = require('relay-runtime');
|
|
46
41
|
|
|
47
42
|
/**
|
|
48
43
|
* This module is an experiment to explore a proposal normalized response format for GraphQL.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -293,13 +293,6 @@ class RelayReader {
|
|
|
293
293
|
const selection = selections[i];
|
|
294
294
|
switch (selection.kind) {
|
|
295
295
|
case REQUIRED_FIELD:
|
|
296
|
-
invariant(
|
|
297
|
-
RelayFeatureFlags.ENABLE_REQUIRED_DIRECTIVES,
|
|
298
|
-
'RelayReader(): Encountered a `@required` directive at path "%s" in `%s` without the `ENABLE_REQUIRED_DIRECTIVES` feature flag enabled.',
|
|
299
|
-
selection.path,
|
|
300
|
-
this._selector.node.name,
|
|
301
|
-
);
|
|
302
|
-
|
|
303
296
|
const fieldValue = this._readRequiredField(selection, record, data);
|
|
304
297
|
if (fieldValue == null) {
|
|
305
298
|
const {action} = selection;
|
package/store/TypeID.js.flow
CHANGED
package/util/ReaderNode.js.flow
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -48,7 +48,7 @@ export type RequestParameters =
|
|
|
48
48
|
// common fields
|
|
49
49
|
+name: string,
|
|
50
50
|
+operationKind: 'mutation' | 'query' | 'subscription',
|
|
51
|
-
+providedVariables?: {
|
|
51
|
+
+providedVariables?: {[key: string]: {|get(): mixed|}},
|
|
52
52
|
+metadata: {[key: string]: mixed, ...},
|
|
53
53
|
|}
|
|
54
54
|
| {|
|
|
@@ -58,7 +58,7 @@ export type RequestParameters =
|
|
|
58
58
|
// common fields
|
|
59
59
|
+name: string,
|
|
60
60
|
+operationKind: 'mutation' | 'query' | 'subscription',
|
|
61
|
-
+providedVariables?: {
|
|
61
|
+
+providedVariables?: {[key: string]: {|get(): mixed|}},
|
|
62
62
|
+metadata: {[key: string]: mixed, ...},
|
|
63
63
|
|};
|
|
64
64
|
|
package/util/RelayError.js.flow
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -20,7 +20,6 @@ export type FeatureFlags = {|
|
|
|
20
20
|
ENABLE_VARIABLE_CONNECTION_KEY: boolean,
|
|
21
21
|
ENABLE_PARTIAL_RENDERING_DEFAULT: boolean,
|
|
22
22
|
ENABLE_REACT_FLIGHT_COMPONENT_FIELD: boolean,
|
|
23
|
-
ENABLE_REQUIRED_DIRECTIVES: boolean | string,
|
|
24
23
|
ENABLE_RELAY_RESOLVERS: boolean,
|
|
25
24
|
ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION: boolean,
|
|
26
25
|
ENABLE_FRIENDLY_QUERY_NAME_GQL_URL: boolean,
|
|
@@ -42,7 +41,6 @@ const RelayFeatureFlags: FeatureFlags = {
|
|
|
42
41
|
ENABLE_VARIABLE_CONNECTION_KEY: false,
|
|
43
42
|
ENABLE_PARTIAL_RENDERING_DEFAULT: true,
|
|
44
43
|
ENABLE_REACT_FLIGHT_COMPONENT_FIELD: false,
|
|
45
|
-
ENABLE_REQUIRED_DIRECTIVES: false,
|
|
46
44
|
ENABLE_RELAY_RESOLVERS: false,
|
|
47
45
|
ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION: false,
|
|
48
46
|
ENABLE_FRIENDLY_QUERY_NAME_GQL_URL: false,
|
package/util/deepFreeze.js.flow
CHANGED
package/util/generateID.js.flow
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
* @emails oncall+relay
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// flowlint ambiguous-object-type:error
|
|
13
|
+
|
|
14
|
+
'use strict';
|
|
15
|
+
|
|
16
|
+
import type {RequestParameters} from './RelayConcreteNode';
|
|
17
|
+
import type {Variables} from './RelayRuntimeTypes';
|
|
18
|
+
|
|
19
|
+
function getAllRootVariables(
|
|
20
|
+
userSuppliedVariables: Variables,
|
|
21
|
+
parameters: RequestParameters,
|
|
22
|
+
): Variables {
|
|
23
|
+
const providedVariables = parameters.providedVariables;
|
|
24
|
+
if (providedVariables != null) {
|
|
25
|
+
const allVariables = {};
|
|
26
|
+
Object.assign(allVariables, userSuppliedVariables);
|
|
27
|
+
Object.keys(providedVariables).forEach((varName: string) => {
|
|
28
|
+
allVariables[varName] = providedVariables[varName].get();
|
|
29
|
+
});
|
|
30
|
+
return allVariables;
|
|
31
|
+
} else {
|
|
32
|
+
return userSuppliedVariables;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
module.exports = getAllRootVariables;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -13,11 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
'use strict';
|
|
15
15
|
|
|
16
|
-
import type {
|
|
17
|
-
|
|
18
|
-
ReaderFragment,
|
|
19
|
-
ReaderPaginationMetadata,
|
|
20
|
-
} from 'relay-runtime';
|
|
16
|
+
import type {ReaderFragment, ReaderPaginationMetadata} from './ReaderNode';
|
|
17
|
+
import type {ConcreteRequest} from './RelayConcreteNode';
|
|
21
18
|
|
|
22
19
|
const getRefetchMetadata = require('./getRefetchMetadata');
|
|
23
20
|
const invariant = require('invariant');
|