ardatan / graphql-mesh

🕸️ GraphQL Federation Framework for any API services such as REST, OpenAPI, Swagger, SOAP, gRPC and more...
https://the-guild.dev/graphql/mesh
MIT License
3.27k stars 340 forks source link

GraphQL handler not applying operationHeaders on mesh serve #2186

Closed r0zar closed 3 years ago

r0zar commented 3 years ago

Describe the bug Upon running mesh serve, the payloads are arriving without any changes to the headers.

To Reproduce Steps to reproduce the behavior: Copy paste the graphql handler example from the docs site and connect to a graphql endpoint with auth required.

Expected behavior HTTP request to arrive with headers as defined in the yml file.

Environment:

Additional context Have been trying without success to connect to the API provided by Braintree. https://payments.sandbox.braintree-api.com/graphql I have tried everything I can find online, but not able to connect successfully.

ardatan commented 3 years ago

If you provide the same headers under both schemaHeaders and operationHeaders, does it work?

ardatan commented 3 years ago

Closing this issue for now. Feel free to open a new with a reproduction. Also you can check https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md#a-typical-contributor-workflow