Created
October 2, 2021 21:30
-
-
Save kabece/f98085415d2a99fefcc1356779320177 to your computer and use it in GitHub Desktop.
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
import { relayStylePagination } from '@apollo/client/utilities' | |
const client = new ApolloClient({ | |
uri: 'http://localhost:4000/query', | |
cache: new InMemoryCache({ | |
typePolicies: { | |
ChatRoom: { | |
fields: { | |
messagesConnection: relayStylePagination(), | |
}, | |
}, | |
}, | |
}), | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment