relay-runtime 0.0.0-main-2a12ee79 → 0.0.0-main-e29e1f94

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.
@@ -132,7 +132,10 @@ class RelayReader {
132
132
  this._fieldErrors = null;
133
133
  this._owner = selector.owner;
134
134
  this._useExecTimeResolvers =
135
- this._owner.node.operation.use_exec_time_resolvers ?? false;
135
+ this._owner.node.operation.use_exec_time_resolvers ??
136
+ this._owner.node.operation.exec_time_resolvers_enabled_provider?.get() ===
137
+ true ??
138
+ false;
136
139
  this._recordSource = recordSource;
137
140
  this._seenRecords = new Set();
138
141
  this._selector = selector;
@@ -12,7 +12,7 @@
12
12
  'use strict';
13
13
 
14
14
  import type {ResolverFunction, ResolverModule} from './ReaderNode';
15
- import type {ConcreteRequest} from './RelayConcreteNode';
15
+ import type {ConcreteRequest, ProvidedVariableType} from './RelayConcreteNode';
16
16
  import type {JSResourceReference} from 'JSResourceReference';
17
17
 
18
18
  /**
@@ -28,6 +28,7 @@ export type NormalizationOperation = {
28
28
  +[string]: $ReadOnlyArray<string>,
29
29
  },
30
30
  +use_exec_time_resolvers?: boolean,
31
+ +exec_time_resolvers_enabled_provider?: ProvidedVariableType,
31
32
  };
32
33
 
33
34
  export type NormalizationHandle =
@@ -39,6 +39,8 @@ export type NormalizationRootNode =
39
39
  | ConcreteRequest
40
40
  | NormalizationSplitOperation;
41
41
 
42
+ export type ProvidedVariableType = {get(): mixed};
43
+
42
44
  export type ProvidedVariablesType = {+[key: string]: {get(): mixed}};
43
45
 
44
46
  /**