@aws-amplify/api-graphql 4.6.4-unstable.05e84a1.0 → 4.6.4-unstable.c72e72a.0

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.
@@ -162,7 +162,7 @@ export type GraphQLOperation = Source | string;
162
162
  * API V6 `graphql({options})` type that can leverage branded graphql `query`
163
163
  * objects and fallback types.
164
164
  */
165
- export interface GraphQLOptionsV6<FALLBACK_TYPES = unknown, TYPED_GQL_STRING extends string = string> {
165
+ export interface GraphQLOptionsV6<FALLBACK_TYPES = unknown, TYPED_GQL_STRING extends string = string> extends Record<string, unknown> {
166
166
  query: TYPED_GQL_STRING | DocumentNode;
167
167
  variables?: GraphQLVariablesV6<FALLBACK_TYPES, TYPED_GQL_STRING>;
168
168
  authMode?: GraphQLAuthMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/api-graphql",
3
- "version": "4.6.4-unstable.05e84a1.0+05e84a1",
3
+ "version": "4.6.4-unstable.c72e72a.0+c72e72a",
4
4
  "description": "Api-graphql category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -84,8 +84,8 @@
84
84
  "server"
85
85
  ],
86
86
  "dependencies": {
87
- "@aws-amplify/api-rest": "4.0.61-unstable.05e84a1.0+05e84a1",
88
- "@aws-amplify/core": "6.7.1-unstable.05e84a1.0+05e84a1",
87
+ "@aws-amplify/api-rest": "4.0.61-unstable.c72e72a.0+c72e72a",
88
+ "@aws-amplify/core": "6.7.1-unstable.c72e72a.0+c72e72a",
89
89
  "@aws-amplify/data-schema": "^1.7.0",
90
90
  "@aws-sdk/types": "3.387.0",
91
91
  "graphql": "15.8.0",
@@ -101,5 +101,5 @@
101
101
  "limit": "91.7 kB"
102
102
  }
103
103
  ],
104
- "gitHead": "05e84a1cab91ef3b13887dd03a7a7825a0e44121"
104
+ "gitHead": "c72e72ad038bb436287b984a98ad7eb992664be6"
105
105
  }
@@ -4,6 +4,7 @@ import { CustomHeaders } from '@aws-amplify/data-schema/runtime';
4
4
 
5
5
  import { GraphQLAPI } from '../GraphQLAPI';
6
6
  import {
7
+ GraphQLOptions,
7
8
  GraphQLOptionsV6,
8
9
  GraphQLResponseV6,
9
10
  V6Client,
@@ -113,10 +114,11 @@ export function graphql<
113
114
  * Neither of these can actually be validated at runtime. Hence, we don't perform
114
115
  * any validation or type-guarding here.
115
116
  */
117
+
116
118
  const result = GraphQLAPI.graphql(
117
119
  // TODO: move V6Client back into this package?
118
120
  internals.amplify as any,
119
- options,
121
+ options as GraphQLOptions,
120
122
  headers,
121
123
  );
122
124
 
@@ -212,7 +212,7 @@ export type GraphQLOperation = Source | string;
212
212
  export interface GraphQLOptionsV6<
213
213
  FALLBACK_TYPES = unknown,
214
214
  TYPED_GQL_STRING extends string = string,
215
- > {
215
+ > extends Record<string, unknown> {
216
216
  query: TYPED_GQL_STRING | DocumentNode;
217
217
  variables?: GraphQLVariablesV6<FALLBACK_TYPES, TYPED_GQL_STRING>;
218
218
  authMode?: GraphQLAuthMode;