Have updated our code to the latest iOS library (actually for a tvOS app) to 1.0.1, and am trying to setup subscriptions to AWS AppSync.
While Queries and Mutations are working fine, looks like Subscriptions need some additional work with AWS, specifically a custom RequestBodyCreator
as detailed here: Using Apollo with AppSync directly on iOS; and here: Document how to use client with AppSync #224 .
It looks like changes in release 1.0.1 to GraphQLOperation have broken some of this code, specifically triggering the following errors:
Value of type 'Operation' has no member 'variables'
Static member 'operationName' cannot be used on instance of type 'Operation'
Static member 'operationIdentifier' cannot be used on instance of type 'Operation'
Value of type 'Operation' has no member 'queryDocument'
Generic struct 'Dictionary' requires the types 'String' and 'any JSONEncodable' be equivalent
Does anyone have any suggestions/sample code to fix these issues? I’ve already spent far too much time trying to sort subscriptions as it is, and if there is anyone whose already tackled it, that would be much appreciated.