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

Is version 6.x supports multiple end-points? #13992

Open
2 tasks done
ksankumar opened this issue Nov 7, 2024 · 3 comments
Open
2 tasks done

Is version 6.x supports multiple end-points? #13992

ksankumar opened this issue Nov 7, 2024 · 3 comments
Labels
feature-request Request a new feature GraphQL Related to GraphQL API issues pending-maintainer-response Issue is pending a response from the Amplify team.

Comments

@ksankumar
Copy link

ksankumar commented Nov 7, 2024

Is this related to a new or existing framework?

React

Is this related to a new or existing API?

GraphQL API

Is this related to another service?

No response

Describe the feature you'd like to request

Is new version 6.x supports multiple end-points to get the data using graphQL subscription

Describe the solution you'd like

Is new version 6.x supports multiple end-points to get the data using graphQL

Describe alternatives you've considered

apollo-clients supports

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending a response from the Amplify team. labels Nov 7, 2024
@cwomack cwomack added the GraphQL Related to GraphQL API issues label Nov 7, 2024
@chrisbonifacio chrisbonifacio added feature-request Request a new feature and removed pending-triage Issue is pending triage pending-maintainer-response Issue is pending a response from the Amplify team. labels Nov 11, 2024
@chrisbonifacio
Copy link
Member

chrisbonifacio commented Nov 11, 2024

hi @ksankumar 👋 thanks for raising this issue. aws-amplify v6 does not currently support multiple endpoints for graphql queries or subscriptions. i've marked this as a feature request for the team to consider.

however, depending on your use case for subscriptions, AppSync just released a feature called AppSync Events that might be useful. have you checked that out yet? here's a link to our docs on it for more information:
https://docs.amplify.aws/react/build-a-backend/data/connect-event-api/

@ksankumar
Copy link
Author

ksankumar commented Nov 11, 2024

@chrisbonifacio I hope this AppSync events-based connect won't work with more than 2 endpoints. I'm looking at the approach like below. Is it possible with AppSync Events?

 API: {
    endpoints: [
      {
        name: 'FirstAPI',
        endpoint: 'https://firstapi.example.com',
        region: 'us-east-1',
      },
      {
        name: 'SecondAPI',
        endpoint: 'https://secondapi.example.com',
        region: 'us-east-1',
      },
    ],
  }

@github-actions github-actions bot added the pending-maintainer-response Issue is pending a response from the Amplify team. label Nov 11, 2024
@ksankumar
Copy link
Author

Any update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature GraphQL Related to GraphQL API issues pending-maintainer-response Issue is pending a response from the Amplify team.
Projects
None yet
Development

No branches or pull requests

3 participants