Check for mobile app access.

This commit is contained in:
Patrick Fic
2022-01-12 15:21:31 -08:00
parent 30ae80c62c
commit 667ddc25d1
8 changed files with 63 additions and 20 deletions

View File

@@ -67,14 +67,13 @@ const link = split(
// split based on operation type
({ query }) => {
const definition = getMainDefinition(query);
// console.log(
// "##Intercepted GQL Transaction : " +
// definition.operation +
// "|" +
// definition.name.value +
// "##",
// query
// );
console.log(
"##Intercepted GQL Transaction : " +
definition.operation +
"|" +
// definition.name.value +
"##"
);
return (
definition.kind === "OperationDefinition" &&
definition.operation === "subscription"
@@ -133,6 +132,10 @@ export const client = new ApolloClient({
defaultOptions: {
watchQuery: {
fetchPolicy: "network-only",
nextFetchPolicy: "network-only",
},
query: {
fetchPolicy: "network-only",
},
},
});