Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Fix issue with errorLoggingLink #1869

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing fields causes this issue.

viewer: {
merge: true,
},
},
},
RootMutation: {
mutationType: true,
Expand Down
Loading