Created
February 8, 2019 12:13
-
-
Save chsami/083443b29d26a96fdc49735841fe1f2d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
provide: APOLLO_OPTIONS, | |
useFactory(httpLink: HttpLink) { | |
return { | |
cache, // InMemoryCache with custom fragment matcher | |
link: httpLink.create({ | |
uri: environment.targetsugraphqlurl | |
}) | |
}; | |
}, | |
deps: [HttpLink] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment