@aws-amplify/api-graphql 2.2.22-unstable.1 → 2.2.22-unstable.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14573,9 +14573,9 @@ function () {
14573
14573
  /**
14574
14574
  * Executes a GraphQL operation
14575
14575
  *
14576
- * @param {GraphQLOptions} GraphQL Options
14577
- * @param {object} additionalHeaders headers to merge in after any `graphql_headers` set in the config
14578
- * @returns {Promise<GraphQLResult> | Observable<object>}
14576
+ * @param options - GraphQL Options
14577
+ * @param [additionalHeaders] - headers to merge in after any `graphql_headers` set in the config
14578
+ * @returns An Observable if the query is a subscription query, else a promise of the graphql result.
14579
14579
  */
14580
14580
 
14581
14581
 
@@ -14625,9 +14625,10 @@ function () {
14625
14625
  variables: variables,
14626
14626
  authMode: authMode
14627
14627
  }, headers);
14628
- }
14629
14628
 
14630
- throw new Error("invalid operation type: " + operationType);
14629
+ default:
14630
+ throw new Error("invalid operation type: " + operationType);
14631
+ }
14631
14632
  };
14632
14633
 
14633
14634
  GraphQLAPIClass.prototype._graphql = function (_a, additionalHeaders, initParams) {