amplify-swift icon indicating copy to clipboard operation
amplify-swift copied to clipboard

Amplify DataStore configuration does not allow which apiName to specify if multiple APIs are configured.

Open johnm555 opened this issue 5 years ago • 1 comments

It seems the dataStore configuration does not allow which apiName to specify if multiple APIs are configured.

Originally posted by @johnm555 in https://github.com/aws-amplify/amplify-ios/issues/814#issuecomment-713161491

johnm555 avatar Oct 22 '20 22:10 johnm555

This issue is stale because it has been open for 14 days with no activity. Please, provide an update or it will be automatically closed in 7 days.

github-actions[bot] avatar Jun 19 '21 00:06 github-actions[bot]

DataStore will use the first GraphQL API configured in the configuration, so if you have multiple GraphQL APIs, it won't know which one to use, since there's no way to configure the "apiName" from DataStore. Are you still blocked on setting up your Amplify dependencies? This is very similar to other issues such as having DataStore and API in the same app. I'm looking to consolidate this feature request in one issue over in https://github.com/aws-amplify/amplify-swift/issues/739 Please track this and provide your input. Thanks!

lawmicha avatar Aug 10 '23 15:08 lawmicha