Skip to content
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

Apollo Router endpoint to handle both /graphql and /graphql/ requests #4836

Open
ernestaskardzys opened this issue Mar 22, 2024 · 0 comments

Comments

@ernestaskardzys
Copy link

Is your feature request related to a problem? Please describe.

Currently we have the following following URL that serves as Apollo Router endpoint: https://www.example.net/graphql

However, there are some legacy (!) clients that use "old" endpoint: https://www.example.net/graphql/ (note "/" at the end). Unfortunately, due to backwards compatibility reasons we need to support both endpoints.

Based on https://www.apollographql.com/docs/router/configuration/overview/#endpoint-path , Apollo Router does not support any additional symbols at the end of path, which ends with /graphql

Therefore, we need a way to support both endpoints: /graphql and /graphql/

Describe the solution you'd like

I would prefer for the Apollo Router to handle both types of requests - going to either https://www.example.net/graphql or https://www.example.net/graphql/

Describe alternatives you've considered

As we use GCP and Kubernetes, there might be a way to write a custom "Ingress" CRD which redirects requests to self - hosted Apollo Router instance.

Additional context

This feature request is due to backward - compatibility reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant