-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve docs for customFetch
usage
#4110
Comments
@Urigo Could you please put it here at least link to test suite to see how customFetch can be used? Or a quick example? This blocks us of upgrading the graphql-mesh :-( I'm trying it but the problem I see is that the function receives the request object instead of url + opts. Then e.g. |
@lkrzyzanek Why do you want to use a |
We started using to This method Signature looks great ! But in our setup it behaves very differently.
@ardatan Thank you for your reply! |
@lkrzyzanek You are right. It's been fixed in fetchache now. It will be released on Mesh soon. By the way we recently introduced We couldn't find enough time for OpenTelemetry. About retry, timeout mechanism, we have implemented it in GraphQL Handler; https://www.the-guild.dev/graphql/mesh/docs/handlers/graphql#fetch-strategies-and-multiple-http-endpoints-for-the-same-source |
Thanks for such quick fix. Much appreciated.
I'm aware of retry/timeout/fallback strategies. They are great for basic usage. However the retry is not much configurable. It's just a number.
Yes. Unfortunately it didn't work for us and given that it's not official otel plugin + we switched to node-fetch |
Related to needing docs, is there anyway to specify Attempting this sources:
- name: MySource
handler:
openapi:
customFetch: ./src/custom-fetch.ts gives this in the logs:
|
@cancan101 No there is not. You can write a plugin with @lkrzyzanek PRs are welcome! |
No description provided.
The text was updated successfully, but these errors were encountered: