You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use ApolloTestingModule and flush data, angular-apollo writes a bunch of console.error messages which look like this:
console.error
Missing field 'parents' while writing result {
"__typename": "VideoAsset",
........
}
at Function.error (../../../node_modules/ts-invariant/lib/invariant.esm.js:35:27)
at ../../../node_modules/@apollo/client/cache/inmemory/writeToStore.js:149:42
at Set.forEach (<anonymous>)
at StoreWriter.Object.<anonymous>.StoreWriter.processSelectionSet (../../../node_modules/@apollo/client/cache/inmemory/writeToStore.js:105:20)
at StoreWriter.Object.<anonymous>.StoreWriter.processFieldValue (../../../node_modules/@apollo/client/cache/inmemory/writeToStore.js:192:21)
at ../../../node_modules/@apollo/client/cache/inmemory/writeToStore.js:187:35
at Array.map (<anonymous>)
The field parents is just an example here, console.error messages are printed for a number of different fields. The data being flushed does not contain the fields in question, but those fields are also nullable fields in the schema, so they should not be required.
What is the correct way to stop apollo-angular from logging these messages?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I use
ApolloTestingModule
and flush data, angular-apollo writes a bunch ofconsole.error
messages which look like this:The field
parents
is just an example here,console.error
messages are printed for a number of different fields. The data being flushed does not contain the fields in question, but those fields are also nullable fields in the schema, so they should not be required.What is the correct way to stop apollo-angular from logging these messages?
Beta Was this translation helpful? Give feedback.
All reactions