Created
November 14, 2020 07:07
-
-
Save Stradivario/78ef0009685872e7f65557052e9ae621 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
const http = ApolloLink.from([ | |
new RetryLink({ | |
attempts: { | |
max: 5, | |
retryIf: (error, operation: Operation) => { | |
logger.error(`retry to connect error: ${error.message}`); | |
return !!error; | |
}, | |
}, | |
delay: { | |
initial: 500, | |
jitter: true, | |
max: Infinity, | |
}, | |
}), | |
new HttpLink({ uri, fetch }), | |
]); | |
const schemaOriginal = makeRemoteExecutableSchema({ | |
schema: await introspectSchema(http), | |
link: http, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment