@aws-amplify/api-graphql 4.6.5 → 4.6.6-unstable.881619d.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.
- package/dist/esm/types/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/internals/v6.ts +3 -1
- package/src/types/index.ts +1 -1
|
@@ -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.
|
|
3
|
+
"version": "4.6.6-unstable.881619d.0+881619d",
|
|
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.
|
|
88
|
-
"@aws-amplify/core": "6.7.
|
|
87
|
+
"@aws-amplify/api-rest": "4.0.63-unstable.881619d.0+881619d",
|
|
88
|
+
"@aws-amplify/core": "6.7.3-unstable.881619d.0+881619d",
|
|
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": "
|
|
104
|
+
"gitHead": "881619de83c82fc20c27e0caf7dbb3f43cd1e88c"
|
|
105
105
|
}
|
package/src/internals/v6.ts
CHANGED
|
@@ -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
|
|
package/src/types/index.ts
CHANGED
|
@@ -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;
|