Skip to content

Commit

Permalink
Fix: Fix issue with errorLoggingLink
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Apr 2, 2024
1 parent 71ca18f commit 04e9159
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
17 changes: 1 addition & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions packages/faustwp-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
"isomorphic-fetch": "^3.0.0",
"js-cookie": "^3.0.5",
"js-sha256": "^0.9.0",
"lodash": "^4.17.21",
"zen-observable-ts": "^1.1.0"
"lodash": "^4.17.21"
},
"scripts": {
"dev": "concurrently \"npm:watch-*\" --prefix-colors \"auto\"",
Expand Down
2 changes: 1 addition & 1 deletion packages/faustwp-core/src/apollo/errorLoggingLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
FetchResult,
NextLink,
Operation,
Observable,
ServerError,
} from '@apollo/client';
import { Observable } from 'zen-observable-ts';
import { errorLog } from '../utils/log.js';

/**
Expand Down
5 changes: 5 additions & 0 deletions packages/faustwp-core/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ export function createApolloClient(authenticated = false) {
typePolicies: {
RootQuery: {
queryType: true,
fields: {
viewer: {
merge: true,
},
},
},
RootMutation: {
mutationType: true,
Expand Down

0 comments on commit 04e9159

Please sign in to comment.