fix sub apollo cache merge errors
This commit is contained in:
parent
afe096e516
commit
b5bf0c88e3
@ -34,7 +34,12 @@ function getClient (uri) {
|
|||||||
freezeResults: true,
|
freezeResults: true,
|
||||||
typePolicies: {
|
typePolicies: {
|
||||||
Sub: {
|
Sub: {
|
||||||
keyFields: ['name']
|
keyFields: ['name'],
|
||||||
|
fields: {
|
||||||
|
optional: {
|
||||||
|
merge: true
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
User: {
|
User: {
|
||||||
// https://www.apollographql.com/docs/react/caching/cache-field-behavior/#merging-non-normalized-objects
|
// https://www.apollographql.com/docs/react/caching/cache-field-behavior/#merging-non-normalized-objects
|
||||||
|
Loading…
x
Reference in New Issue
Block a user