Created
March 31, 2021 14:11
-
-
Save JoSuzuki/3546f3559161611bca1eb2f81ba16651 to your computer and use it in GitHub Desktop.
Cache with mergeable types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cache = new InMemoryCache({ | |
possibleTypes: { | |
MergeableTypes: mergeableTypesArray, | |
}, | |
typePolicies: { | |
MergeableTypes: { | |
merge: true, | |
}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment