apollo-server-integrations / apollo-server-integration-cloudflare-workers

An integration to use Cloudflare Workers as a hosting service with Apollo Server
https://github.com/kimyvgy/worker-apollo-server-template
MIT License
13 stars 0 forks source link

Call own graphql server #128

Open simplenotezy opened 3 weeks ago

simplenotezy commented 3 weeks ago

Is there a way to call your own graphql server somehow? Worker to worker requests roundtrips are not allowed (403 error code).

Let's say I use Hono and from a route resolver wish to query the graphql server, without duplicating code, how could that be achieved?

Would be a nice feature!

kimyvgy commented 3 weeks ago

@simplenotezy Worker-to-Worker fetch requests are possible with Service bindings. Did you perform the request using Service Bindings?

Cloudflare Docs: https://developers.cloudflare.com/workers/runtime-apis/fetch/

simplenotezy commented 3 weeks ago

As far as I can see service bindings is for Worker A -> Worker B.

I am looking for Worker A -> Worker A