relay-runtime 0.0.0-main-a1221c1a → 0.0.0-main-3a83ed43
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
CHANGED
|
@@ -21,7 +21,7 @@ var _require = require('../query/GraphQLTag'),
|
|
|
21
21
|
var _require2 = require('../store/RelayStoreUtils'),
|
|
22
22
|
getArgumentValues = _require2.getArgumentValues;
|
|
23
23
|
|
|
24
|
-
var nonUpdatableKeys = ['id', '__id', '__typename'];
|
|
24
|
+
var nonUpdatableKeys = ['id', '__id', '__typename', 'js'];
|
|
25
25
|
|
|
26
26
|
function readUpdatableQuery_EXPERIMENTAL(query, variables, proxy) {
|
|
27
27
|
// TODO assert that the concrete request is an updatable query
|
|
@@ -163,7 +163,7 @@ function createSetterForSingularLinkedField(selection, queryVariables, recordPro
|
|
|
163
163
|
|
|
164
164
|
if (newValue == null) {
|
|
165
165
|
// $FlowFixMe[unclear-type] No good way to type these variables
|
|
166
|
-
recordProxy.setValue(
|
|
166
|
+
recordProxy.setValue(newValue, selection.name, variables);
|
|
167
167
|
} else {
|
|
168
168
|
var __id = newValue.__id;
|
|
169
169
|
|
|
@@ -21,7 +21,7 @@ import type {OperationType} from '../util/RelayRuntimeTypes';
|
|
|
21
21
|
const {getRequest} = require('../query/GraphQLTag');
|
|
22
22
|
const {getArgumentValues} = require('../store/RelayStoreUtils');
|
|
23
23
|
|
|
24
|
-
const nonUpdatableKeys = ['id', '__id', '__typename'];
|
|
24
|
+
const nonUpdatableKeys = ['id', '__id', '__typename', 'js'];
|
|
25
25
|
|
|
26
26
|
function readUpdatableQuery_EXPERIMENTAL<TQuery: OperationType>(
|
|
27
27
|
query: GraphQLTaggedNode,
|
|
@@ -214,7 +214,7 @@ function createSetterForSingularLinkedField<TQuery: OperationType>(
|
|
|
214
214
|
const variables = getArgumentValues(selection.args ?? [], queryVariables);
|
|
215
215
|
if (newValue == null) {
|
|
216
216
|
// $FlowFixMe[unclear-type] No good way to type these variables
|
|
217
|
-
recordProxy.setValue(
|
|
217
|
+
recordProxy.setValue(newValue, selection.name, (variables: any));
|
|
218
218
|
} else {
|
|
219
219
|
const {__id} = newValue;
|
|
220
220
|
if (__id == null) {
|