@graphql-mesh/openapi 1.0.0-alpha-20230523160518-5443a1139 → 1.0.0-alpha-20230523160829-449dc3c14
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/cjs/index.js +1 -2
- package/esm/index.js +1 -2
- package/package.json +10 -7
package/cjs/index.js
CHANGED
|
@@ -34,7 +34,6 @@ class OpenAPIHandler {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
return this.schemaWithAnnotationsProxy.getWithSet(async () => {
|
|
37
|
-
var _a;
|
|
38
37
|
this.logger.info(`Generating GraphQL schema from OpenAPI schema`);
|
|
39
38
|
const schema = await (0, openapi_1.loadNonExecutableGraphQLSchemaFromOpenAPI)(this.name, {
|
|
40
39
|
...this.config,
|
|
@@ -42,7 +41,7 @@ class OpenAPIHandler {
|
|
|
42
41
|
cwd: this.baseDir,
|
|
43
42
|
fetch: this.fetchFn,
|
|
44
43
|
logger: this.logger,
|
|
45
|
-
selectQueryOrMutationField:
|
|
44
|
+
selectQueryOrMutationField: this.config.selectQueryOrMutationField?.map(({ type, fieldName }) => ({
|
|
46
45
|
type: type.toLowerCase(),
|
|
47
46
|
fieldName,
|
|
48
47
|
})),
|
package/esm/index.js
CHANGED
|
@@ -32,7 +32,6 @@ export default class OpenAPIHandler {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
return this.schemaWithAnnotationsProxy.getWithSet(async () => {
|
|
35
|
-
var _a;
|
|
36
35
|
this.logger.info(`Generating GraphQL schema from OpenAPI schema`);
|
|
37
36
|
const schema = await loadNonExecutableGraphQLSchemaFromOpenAPI(this.name, {
|
|
38
37
|
...this.config,
|
|
@@ -40,7 +39,7 @@ export default class OpenAPIHandler {
|
|
|
40
39
|
cwd: this.baseDir,
|
|
41
40
|
fetch: this.fetchFn,
|
|
42
41
|
logger: this.logger,
|
|
43
|
-
selectQueryOrMutationField:
|
|
42
|
+
selectQueryOrMutationField: this.config.selectQueryOrMutationField?.map(({ type, fieldName }) => ({
|
|
44
43
|
type: type.toLowerCase(),
|
|
45
44
|
fieldName,
|
|
46
45
|
})),
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/openapi",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230523160829-449dc3c14",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/store": "1.0.0-alpha-
|
|
7
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
9
|
-
"@graphql-tools/utils": "^9.2.1",
|
|
6
|
+
"@graphql-mesh/store": "1.0.0-alpha-20230523160829-449dc3c14",
|
|
7
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230523160829-449dc3c14",
|
|
8
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230523160829-449dc3c14",
|
|
9
|
+
"@graphql-tools/utils": "^9.2.1 || ^10.0.0",
|
|
10
10
|
"graphql": "*",
|
|
11
11
|
"tslib": "^2.4.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@graphql-mesh/string-interpolation": "0.5.0-alpha-
|
|
15
|
-
"@omnigraph/openapi": "1.0.0-alpha-
|
|
14
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230523160829-449dc3c14",
|
|
15
|
+
"@omnigraph/openapi": "1.0.0-alpha-20230523160829-449dc3c14"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"directory": "packages/handlers/openapi"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=16.0.0"
|
|
25
|
+
},
|
|
23
26
|
"main": "cjs/index.js",
|
|
24
27
|
"module": "esm/index.js",
|
|
25
28
|
"typings": "typings/index.d.ts",
|