relay-runtime 0.0.0-main-e8dfee9a → 0.0.0-main-c195657b
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.
|
@@ -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;
|
|
@@ -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,
|