-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yoginth
committed
Dec 16, 2024
1 parent
02292cc
commit dbd850d
Showing
3 changed files
with
4 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
import { InMemoryCache } from '@apollo/client'; | ||
import result from '../../generated'; | ||
import createPostsFieldPolicy from './createPostsFieldPolicy'; | ||
|
||
const cache = new InMemoryCache({ | ||
possibleTypes: result.possibleTypes, | ||
typePolicies: { | ||
Query: { | ||
fields: { | ||
posts: createPostsFieldPolicy() | ||
} | ||
} | ||
} | ||
}); | ||
|
||
export default cache; |