Open ksankumar opened 2 weeks ago
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/
@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',
},
],
}
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?