@salesforce/lds-adapters-graphql 1.140.0 → 1.141.0
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.
|
@@ -9,6 +9,7 @@ import { register } from '@salesforce/lds-default-luvio';
|
|
|
9
9
|
import { Kind, astResolver } from '@luvio/graphql-parser';
|
|
10
10
|
import { graphqlAdapterFactory } from '@salesforce/lds-adapters-uiapi';
|
|
11
11
|
import { createIngestRecordWithFields, keyBuilderRecord } from '@salesforce/lds-adapters-uiapi';
|
|
12
|
+
import ldsAdapterForwardingGate from '@salesforce/gate/lds.graphqlAdapterForwarding';
|
|
12
13
|
|
|
13
14
|
const { isArray } = Array;
|
|
14
15
|
const { keys, freeze, create } = Object;
|
|
@@ -2188,7 +2189,7 @@ const graphQLAdapterFactory = (luvio) => {
|
|
|
2188
2189
|
return null;
|
|
2189
2190
|
}
|
|
2190
2191
|
const { query, variables, useUiApiAdapter } = validatedConfig;
|
|
2191
|
-
if (useUiApiAdapter === true) {
|
|
2192
|
+
if (useUiApiAdapter === true || ldsAdapterForwardingGate.isOpen({ fallback: false })) {
|
|
2192
2193
|
// Forward to new adapters
|
|
2193
2194
|
const resolvedQuery = astResolver(query);
|
|
2194
2195
|
if (resolvedQuery === undefined) {
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
|
18
18
|
import { Kind, astResolver } from 'force/ldsGraphqlParser';
|
|
19
19
|
import { graphqlAdapterFactory } from 'force/ldsAdaptersUiapiGraphql';
|
|
20
20
|
import { createIngestRecordWithFields, keyBuilderRecord } from 'force/ldsAdaptersUiapi';
|
|
21
|
+
import ldsAdapterForwardingGate from '@salesforce/gate/lds.graphqlAdapterForwarding';
|
|
21
22
|
|
|
22
23
|
const { isArray } = Array;
|
|
23
24
|
const { keys, freeze, create } = Object;
|
|
@@ -2197,7 +2198,7 @@ const graphQLAdapterFactory = (luvio) => {
|
|
|
2197
2198
|
return null;
|
|
2198
2199
|
}
|
|
2199
2200
|
const { query, variables, useUiApiAdapter } = validatedConfig;
|
|
2200
|
-
if (useUiApiAdapter === true) {
|
|
2201
|
+
if (useUiApiAdapter === true || ldsAdapterForwardingGate.isOpen({ fallback: false })) {
|
|
2201
2202
|
// Forward to new adapters
|
|
2202
2203
|
const resolvedQuery = astResolver(query);
|
|
2203
2204
|
if (resolvedQuery === undefined) {
|
|
@@ -2280,4 +2281,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2280
2281
|
});
|
|
2281
2282
|
|
|
2282
2283
|
export { graphQL, graphQLImperative, unstable_graphQL_imperative };
|
|
2283
|
-
// version: 1.
|
|
2284
|
+
// version: 1.141.0-39a2416f8
|