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