diff --git a/packages/openapi-to-graphql/README.md b/packages/openapi-to-graphql/README.md index f6ced44c..5be8843c 100644 --- a/packages/openapi-to-graphql/README.md +++ b/packages/openapi-to-graphql/README.md @@ -156,6 +156,8 @@ Schema options: - `idFormats` (type: `string[]`): If a schema is of type string and has format UUID, it will be translated into a [GraphQL ID type](https://graphql.org/graphql-js/type/#graphqlid). To allow for more customzation, this option allows users to specify other formats that should be interpreted as ID types. +- `selectQueryOrMutationField` (type: `object`, default: `{}`): OpenAPI-to-GraphQL, by default, will make all GET operations into `Query` fields and all other operations into `Mutation` fields. This option allows users to manually override this process. The operation is identifed first by the [title](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#infoObject) of the OAS, then the [path](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#paths-object) of the operation, and lastly the [method](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#path-item-object) of the operation. The `selectQueryOrMutationField` object is thus a triply nested object where the outer key is the title, followed by the path, and finally the method, which points to an integer value of either `0`, or `1`, corresponding to `Query` or `Mutation` type respectively. + *** Resolver options: diff --git a/packages/openapi-to-graphql/lib/index.d.ts b/packages/openapi-to-graphql/lib/index.d.ts index 5b6e33b4..095413f7 100644 --- a/packages/openapi-to-graphql/lib/index.d.ts +++ b/packages/openapi-to-graphql/lib/index.d.ts @@ -37,3 +37,4 @@ declare type Result = { */ export declare function createGraphQlSchema(spec: Oas3 | Oas2 | (Oas3 | Oas2)[], options?: Options): Promise; export { sanitize } from './oas_3_tools'; +export { GraphQLOperationType } from './types/graphql'; diff --git a/packages/openapi-to-graphql/lib/index.js b/packages/openapi-to-graphql/lib/index.js index 7b324c4e..8cd8bd44 100644 --- a/packages/openapi-to-graphql/lib/index.js +++ b/packages/openapi-to-graphql/lib/index.js @@ -100,7 +100,7 @@ exports.createGraphQlSchema = createGraphQlSchema; */ function translateOpenApiToGraphQL(oass, { strict, report, // Schema options -operationIdFieldNames, fillEmptyResponses, addLimitArgument, idFormats, +operationIdFieldNames, fillEmptyResponses, addLimitArgument, idFormats, selectQueryOrMutationField, // Resolver options headers, qs, requestOptions, baseUrl, customResolvers, // Authentication options @@ -122,6 +122,7 @@ provideErrorExtensions, equivalentToMessages }) { requestOptions, baseUrl, customResolvers, + selectQueryOrMutationField, // Authentication options viewer, tokenJSONpath, @@ -156,6 +157,7 @@ provideErrorExtensions, equivalentToMessages }) { .forEach(([operationId, operation]) => { translationLog(`Process operation '${operationId}'...`); let field = getFieldForOperation(operation, options.baseUrl, data, requestOptions); + // Check if the operation should be added as a Query or Mutation field if (!operation.isMutation) { let fieldName = Oas3Tools.uncapitalize(operation.responseDefinition.otName); if (operation.inViewer) { @@ -470,4 +472,6 @@ function preliminaryChecks(options, data) { } var oas_3_tools_1 = require("./oas_3_tools"); exports.sanitize = oas_3_tools_1.sanitize; +var graphql_2 = require("./types/graphql"); +exports.GraphQLOperationType = graphql_2.GraphQLOperationType; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/openapi-to-graphql/lib/index.js.map b/packages/openapi-to-graphql/lib/index.js.map index 68d2d32f..c7132329 100644 --- a/packages/openapi-to-graphql/lib/index.js.map +++ b/packages/openapi-to-graphql/lib/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE;;;;;;;;;;;AAoChE,qCAA0D;AAG1D,WAAW;AACX,qDAA0D;AAC1D,yDAAgD;AAChD,gDAA+C;AAC/C,iDAA8C;AAC9C,2CAA0C;AAC1C,iDAAoD;AACpD,iCAAyB;AAEzB,mCAAmD;AAOnD,MAAM,cAAc,GAAG,eAAK,CAAC,aAAa,CAAC,CAAA;AAE3C;;GAEG;AACH,SAAsB,mBAAmB,CACvC,IAAmC,EACnC,OAAiB;;QAEjB,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;YAClC,OAAO,GAAG,EAAE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CAAA;YAC3C,CAAC,CAAC,CAAA;YAEF,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBACzD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;oBACjE,IACE,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;wBAC3B,OAAO,IAAI,KAAK,SAAS,CAAC,IAAI,IAAI,MAAM,KAAK,SAAS,CAAC,MAAM,CAAA;oBAC/D,CAAC,CAAC,EACF;wBACA,qBAAa,CAAC;4BACZ,OAAO,EAAE,qCAAqC;4BAC9C,OAAO,EACL,iDAAiD;gCACjD,SAAS,IAAI,iBAAiB,MAAM,0BAA0B;gCAC9D,kBAAkB,KAAK,GAAG;4BAC5B,IAAI;4BACJ,GAAG,EAAE,cAAc;yBACpB,CAAC,CAAA;qBACH;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;KACH;AACH,CAAC;AAED,6CAAwC;AAA/B,iCAAA,QAAQ,CAAA;AACjB,2CAAsD;AAA7C,yCAAA,oBAAoB,CAAA"} \ No newline at end of file diff --git a/packages/openapi-to-graphql/lib/preprocessor.js b/packages/openapi-to-graphql/lib/preprocessor.js index b46da43f..a819743c 100644 --- a/packages/openapi-to-graphql/lib/preprocessor.js +++ b/packages/openapi-to-graphql/lib/preprocessor.js @@ -9,6 +9,7 @@ const Oas3Tools = require("./oas_3_tools"); const deepEqual = require("deep-equal"); const debug_1 = require("debug"); const utils_1 = require("./utils"); +const graphql_1 = require("./types/graphql"); const preprocessingLog = debug_1.default('preprocessing'); /** * Extract information from the OAS and put it inside a data structure that @@ -102,7 +103,22 @@ function preprocessOas(oass, options) { const servers = Oas3Tools.getServers(path, method, oas); // Whether to place this operation into an authentication viewer const inViewer = securityRequirements.length > 0 && data.options.viewer !== false; - const isMutation = method.toLowerCase() !== 'get'; + /** + * Whether the operation should be added as a Query or Mutation field. + * By default, all GET operations are Query fields and all other + * operations are Mutation fields. + */ + let isMutation = method.toLowerCase() !== 'get'; + // Option selectQueryOrMutationField can override isMutation + if (typeof options.selectQueryOrMutationField === 'object' && + typeof options.selectQueryOrMutationField[oas.info.title] === + 'object' && + typeof options.selectQueryOrMutationField[oas.info.title][path] === + 'object' && + typeof options.selectQueryOrMutationField[oas.info.title][path][method] === 'number' // This is an TS enum, which is translated to have a integer value + ) { + isMutation = options.selectQueryOrMutationField[oas.info.title][path][method] === graphql_1.GraphQLOperationType.Mutation; + } // Store determined information for operation const operation = { operationId, diff --git a/packages/openapi-to-graphql/lib/preprocessor.js.map b/packages/openapi-to-graphql/lib/preprocessor.js.map index d9d1907e..ca42dda5 100644 --- a/packages/openapi-to-graphql/lib/preprocessor.js.map +++ b/packages/openapi-to-graphql/lib/preprocessor.js.map @@ -1 +1 @@ -{"version":3,"file":"preprocessor.js","sourceRoot":"","sources":["../src/preprocessor.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE;;AAWhE,WAAW;AACX,2CAA0C;AAC1C,wCAAuC;AACvC,iCAAyB;AACzB,mCAA+D;AAE/D,MAAM,gBAAgB,GAAG,eAAK,CAAC,eAAe,CAAC,CAAA;AAE/C;;;GAGG;AACH,SAAgB,aAAa,CAC3B,IAAY,EACZ,OAAwB;IAExB,MAAM,IAAI,GAAsB;QAC9B,WAAW,EAAE;YACX,OAAO;YACP,UAAU,CAAC,oDAAoD;SAChE;QACD,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;QACZ,OAAO;QACP,IAAI;KACL,CAAA;IAED,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACjB,sBAAsB;QACt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C,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;QAC/B,wBAAwB;QACxB,IAAI,MAAM,IAAI,SAAS,EAAE;YACvB,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAA;SACzD;QAED,4CAA4C;QAC5C,IAAI,OAAO,IAAI,SAAS,EAAE;YACxB,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,CAAC,CAAA;SAChE;QAED,kCAAkC;QAClC,4BAA4B,CAAC,GAAG,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,CAAC,CAAA;IAC5E,CAAC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,4BAA4B,CACnC,GAAmB,EACnB,MAAoB,EACpB,iBAA0B,EAC1B,IAAuB,EACvB,GAAU;IAEV,KAAK,IAAI,WAAW,IAAI,MAAM,CAAC,UAAU,EAAE;QACzC,IAAI,cAAc,GAAG,WAAW,CAAA;QAChC,IAAI,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;QAE/C,IAAI,MAAM,IAAI,UAAU,EAAE;YACxB,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAA;SACrD;QAED,MAAM,aAAa,GAAG,aAAa,CACjC,EAAE,OAAO,EAAE,cAAc,EAAE,EAC3B,UAA0B,EAC1B,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,GAAG,CACJ,CAAA;QACD,4BAA4B;QAC5B,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,aAAa,CAAA;KAChD;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"preprocessor.js","sourceRoot":"","sources":["../src/preprocessor.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC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AAM,CAAC,EAAE,GAAG,CAAC,CAAA;SACzD;QAED,4CAA4C;QAC5C,IAAI,OAAO,IAAI,SAAS,EAAE;YACxB,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,CAAC,CAAA;SAChE;QAED,kCAAkC;QAClC,4BAA4B,CAAC,GAAG,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,CAAC,CAAA;IAC5E,CAAC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,4BAA4B,CACnC,GAAmB,EACnB,MAAoB,EACpB,iBAA0B,EAC1B,IAAuB,EACvB,GAAU;IAEV,KAAK,IAAI,WAAW,IAAI,MAAM,CAAC,UAAU,EAAE;QACzC,IAAI,cAAc,GAAG,WAAW,CAAA;QAChC,IAAI,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;QAE/C,IAAI,MAAM,IAAI,UAAU,EAAE;YACxB,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAA;SACrD;QAED,MAAM,aAAa,GAAG,aAAa,CACjC,EAAE,OAAO,EAAE,cAAc,EAAE,EAC3B,UAA0B,EAC1B,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,GAAG,CACJ,CAAA;QACD,4BAA4B;QAC5B,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,aAAa,CAAA;KAChD;AACH,CAAC"} \ No newline at end of file diff --git a/packages/openapi-to-graphql/lib/resolver_builder.js b/packages/openapi-to-graphql/lib/resolver_builder.js index 84caad3e..832d18a6 100644 --- a/packages/openapi-to-graphql/lib/resolver_builder.js +++ b/packages/openapi-to-graphql/lib/resolver_builder.js @@ -203,7 +203,7 @@ function getResolver({ operation, argsFromLink = {}, payloadName, data, baseUrl, // Get authentication headers and query parameters if (root && typeof root === 'object' && - typeof root['_openapiToGraphql'] == 'object') { + typeof root['_openapiToGraphql'] === 'object') { const { authHeaders, authQs, authCookie } = getAuthOptions(operation, root['_openapiToGraphql'], data); // ...and pass them to the options Object.assign(options.headers, authHeaders); @@ -313,7 +313,7 @@ function getResolver({ operation, argsFromLink = {}, payloadName, data, baseUrl, } if (root && typeof root === 'object' && - typeof root['_openapiToGraphql'] == 'object') { + typeof root['_openapiToGraphql'] === 'object') { Object.assign(element['_openapiToGraphql'], root['_openapiToGraphql']); } element['_openapiToGraphql'].data[getIdentifier(info)] = resolveData; @@ -327,7 +327,7 @@ function getResolver({ operation, argsFromLink = {}, payloadName, data, baseUrl, } if (root && typeof root === 'object' && - typeof root['_openapiToGraphql'] == 'object') { + typeof root['_openapiToGraphql'] === 'object') { Object.assign(saneData['_openapiToGraphql'], root['_openapiToGraphql']); } saneData['_openapiToGraphql'].data[getIdentifier(info)] = resolveData; diff --git a/packages/openapi-to-graphql/lib/resolver_builder.js.map b/packages/openapi-to-graphql/lib/resolver_builder.js.map index ea48cd1e..133d3af5 100644 --- a/packages/openapi-to-graphql/lib/resolver_builder.js.map +++ b/packages/openapi-to-graphql/lib/resolver_builder.js.map @@ -1 +1 @@ -{"version":3,"file":"resolver_builder.js","sourceRoot":"","sources":["../src/resolver_builder.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE;;AAWhE,uCAAsC;AAEtC,WAAW;AACX,2CAA0C;AAC1C,2CAA0C;AAC1C,0CAAyC;AACzC,iCAA6B;AAC7B,qCAAsC;AAEtC,MAAM,cAAc,GAAG,aAAK,CAAC,aAAa,CAAC,CAAA;AAC3C,MAAM,OAAO,GAAG,aAAK,CAAC,MAAM,CAAC,CAAA;AAuB7B;;;GAGG;AACH,SAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,YAAY,GAAG,EAAE,EACjB,WAAW,EACX,IAAI,EACJ,OAAO,EACP,cAAc,EACI;IAClB,iCAAiC;IACjC,IAAI,OAAO,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AO,OAAO,IAAI,CAAC,IAAI,KAAK,WAAW;QACrC,CAAC,CAAC,IAAI,CAAC,GAAG;QACV,CAAC,CAAC;;;;;WAKC;YACH,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACzB,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACpD,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAS,0BAA0B,CACjC,OAAe,EACf,UAAkC;IAElC,OAAO,IAAI,sBAAY,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,CAAA;AAC5E,CAAC"} \ No newline at end of file +{"version":3,"file":"resolver_builder.js","sourceRoot":"","sources":["../src/resolver_builder.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE;;AAWhE,uCAAsC;AAEtC,WAAW;AACX,2CAA0C;AAC1C,2CAA0C;AAC1C,0CAAyC;AACzC,iCAA6B;AAC7B,qCAAsC;AAEtC,MAAM,cAAc,GAAG,aAAK,CAAC,aAAa,CAAC,CAAA;AAC3C,MAAM,OAAO,GAAG,aAAK,CAAC,MAAM,CAAC,CAAA;AAuB7B;;;GAGG;AACH,SAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,YAAY,GAAG,EAAE,EACjB,WAAW,EACX,IAAI,EACJ,OAAO,EACP,cAAc,EACI;IAClB,iCAAiC;IACjC,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;QAClC,OAAO,GAAG,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;KAC1C;IAED,0CAA0C;IAC1C,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAA;IACpD,MAAM,KAAK,GAAG,SA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I,CAAC,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACpD,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAS,0BAA0B,CACjC,OAAe,EACf,UAAkC;IAElC,OAAO,IAAI,sBAAY,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,CAAA;AAC5E,CAAC"} \ No newline at end of file diff --git a/packages/openapi-to-graphql/lib/schema_builder.js.map b/packages/openapi-to-graphql/lib/schema_builder.js.map index 0f71b53d..1d96826f 100644 --- a/packages/openapi-to-graphql/lib/schema_builder.js.map +++ b/packages/openapi-to-graphql/lib/schema_builder.js.map @@ -1 +1 @@ -{"version":3,"file":"schema_builder.js","sourceRoot":"","sources":["../src/schema_builder.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE;;AAiBhE,qCAcgB;AAEhB,WAAW;AACX,iDAAgD;AAChD,2CAA0C;AAC1C,yDAAgD;AAChD,iDAA8C;AAC9C,iCAAyB;AACzB,mCAAmD;AA4DnD,MAAM,cAAc,GAAG,eAAK,CAAC,aAAa,CAAC,CAAA;AAE3C;;GAEG;AACH,SAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,IAAI,EACJ,SAAS,GAAG,CAAC,EACb,iBAAiB,GAAG,KAAK,EACJ;IACrB,MAAM,IAAI,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAA;IAEzD,6BAA6B;IAC7B,IAAI,SAAS,KAAK,EAAE,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,4CAA4C,IAAI,EAAE,CAAC,CAAA;KACpE;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAA;IA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BAAa,CAAC;oBACZ,OAAO,EAAE,mBAAmB;oBAC5B,OAAO,EACL,qBAAqB,IAAI,CAAC,YAAY,kBAAkB;wBACxD,QAAQ,YAAY,gCAAgC;oBACtD,IAAI;oBACJ,GAAG,EAAE,cAAc;iBACpB,CAAC,CAAA;aACH;YACD,MAAK;QAEP,UAAU;QACV,cAAc;QACd,UAAU;QAEV,UAAU;QACV,eAAe;QACf,UAAU;QAEV,iCAAiC;QACjC,gCAAgC;QAChC;YACE,qBAAa,CAAC;gBACZ,OAAO,EAAE,mBAAmB;gBAC5B,OAAO,EACL,wCAAwC;oBACxC,IAAI,IAAI,CAAC,YAAY,gCAAgC;oBACrD,kDAAkD;gBACpD,IAAI;gBACJ,GAAG,EAAE,cAAc;aACpB,CAAC,CAAA;KACL;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"schema_builder.js","sourceRoot":"","sources":["../src/schema_builder.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE;;AAiBhE,qCAcgB;AAEhB,WAAW;AACX,iDAAgD;AAChD,2CAA0C;AAC1C,yDAAgD;AAChD,iDAA8C;AAC9C,iCAAyB;AACzB,mCAAmD;AA4DnD,MAAM,cAAc,GAAG,eAAK,CAAC,aAAa,CAAC,CAAA;AAE3C;;GAEG;AACH,SAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,IAAI,EACJ,SAAS,GAAG,CAAC,EACb,iBAAiB,GAAG,KAAK,EACJ;IACrB,MAAM,IAAI,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAA;IAEzD,6BAA6B;IAC7B,IAAI,SAAS,KAAK,EAAE,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,4CAA4C,IAAI,EAAE,CAAC,CAAA;KACpE;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAA;IAErB,mCAA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oBACZ,OAAO,EAAE,mBAAmB;oBAC5B,OAAO,EACL,qBAAqB,IAAI,CAAC,YAAY,kBAAkB;wBACxD,QAAQ,YAAY,gCAAgC;oBACtD,IAAI;oBACJ,GAAG,EAAE,cAAc;iBACpB,CAAC,CAAA;aACH;YACD,MAAK;QAEP,UAAU;QACV,cAAc;QACd,UAAU;QAEV,UAAU;QACV,eAAe;QACf,UAAU;QAEV,iCAAiC;QACjC,gCAAgC;QAChC;YACE,qBAAa,CAAC;gBACZ,OAAO,EAAE,mBAAmB;gBAC5B,OAAO,EACL,wCAAwC;oBACxC,IAAI,IAAI,CAAC,YAAY,gCAAgC;oBACrD,kDAAkD;gBACpD,IAAI;gBACJ,GAAG,EAAE,cAAc;aACpB,CAAC,CAAA;KACL;AACH,CAAC"} \ No newline at end of file diff --git a/packages/openapi-to-graphql/lib/types/graphql.d.ts b/packages/openapi-to-graphql/lib/types/graphql.d.ts index aadd36f2..5a48735d 100644 --- a/packages/openapi-to-graphql/lib/types/graphql.d.ts +++ b/packages/openapi-to-graphql/lib/types/graphql.d.ts @@ -2,6 +2,10 @@ * Custom type definitions for GraphQL. */ import { GraphQLObjectType, GraphQLScalarType, GraphQLInputObjectType, GraphQLList, GraphQLEnumType } from 'graphql'; +export declare enum GraphQLOperationType { + Query = 0, + Mutation = 1 +} export declare type GraphQLType = GraphQLScalarType | GraphQLObjectType | GraphQLEnumType | GraphQLInputObjectType | GraphQLList; declare type Arg = { type: any; diff --git a/packages/openapi-to-graphql/lib/types/graphql.js b/packages/openapi-to-graphql/lib/types/graphql.js index 75566041..ef415cc0 100644 --- a/packages/openapi-to-graphql/lib/types/graphql.js +++ b/packages/openapi-to-graphql/lib/types/graphql.js @@ -4,4 +4,10 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT Object.defineProperty(exports, "__esModule", { value: true }); +var GraphQLOperationType; +(function (GraphQLOperationType) { + GraphQLOperationType[GraphQLOperationType["Query"] = 0] = "Query"; + GraphQLOperationType[GraphQLOperationType["Mutation"] = 1] = "Mutation"; + // TODO: Subscription +})(GraphQLOperationType = exports.GraphQLOperationType || (exports.GraphQLOperationType = {})); //# sourceMappingURL=graphql.js.map \ No newline at end of file diff --git a/packages/openapi-to-graphql/lib/types/graphql.js.map b/packages/openapi-to-graphql/lib/types/graphql.js.map index c612348b..8286a010 100644 --- a/packages/openapi-to-graphql/lib/types/graphql.js.map +++ b/packages/openapi-to-graphql/lib/types/graphql.js.map @@ -1 +1 @@ -{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/types/graphql.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE"} \ No newline at end of file +{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/types/graphql.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,kCAAkC;AAClC,+CAA+C;AAC/C,gEAAgE;;AAchE,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,iEAAK,CAAA;IACL,uEAAQ,CAAA;IACR,qBAAqB;AACvB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"} \ No newline at end of file diff --git a/packages/openapi-to-graphql/lib/types/options.d.ts b/packages/openapi-to-graphql/lib/types/options.d.ts index 0d4cef85..5f10204b 100644 --- a/packages/openapi-to-graphql/lib/types/options.d.ts +++ b/packages/openapi-to-graphql/lib/types/options.d.ts @@ -1,5 +1,5 @@ import * as NodeRequest from 'request'; -import { ResolveFunction } from './graphql'; +import { ResolveFunction, GraphQLOperationType } from './graphql'; /** * Type definition of the options that users can pass to OpenAPI-to-GraphQL. */ @@ -58,6 +58,17 @@ export declare type Options = { * users to specify other formats that should be interpreted as ID types. */ idFormats?: string[]; + /** + * Allows to define the root operation type (Query or Mutation type) of any + * OAS operation explicitly. + * + * OtG will by default make all GET operations Query fields and all other + * operations into Mutation fields. + * + * The field is identifed first by the title of the OAS, then the path of the + * operation, and lastly the method of the operation. + */ + selectQueryOrMutationField?: selectQueryOrMutationFieldType; /** * Custom headers to send with every request made by a resolve function. */ @@ -184,6 +195,17 @@ export declare type InternalOptions = { * users to specify other formats that should be interpreted as ID types. */ idFormats?: string[]; + /** + * Allows to define the root operation type (Query or Mutation type) of any + * OAS operation explicitly. + * + * OtG will by default make all GET operations Query fields and all other + * operations into Mutation fields. + * + * The field is identifed first by the title of the OAS, then the path of the + * operation, and lastly the method of the operation. + */ + selectQueryOrMutationField?: selectQueryOrMutationFieldType; /** * Custom headers to send with every request made by a resolve function. */ @@ -265,3 +287,10 @@ export declare type InternalOptions = { */ equivalentToMessages: boolean; }; +export declare type selectQueryOrMutationFieldType = { + [title: string]: { + [path: string]: { + [method: string]: GraphQLOperationType; + }; + }; +}; diff --git a/packages/openapi-to-graphql/src/index.ts b/packages/openapi-to-graphql/src/index.ts index 384ae4ca..4ac97cbb 100644 --- a/packages/openapi-to-graphql/src/index.ts +++ b/packages/openapi-to-graphql/src/index.ts @@ -34,7 +34,7 @@ import { Options, InternalOptions, Report } from './types/options' import { Oas3 } from './types/oas3' import { Oas2 } from './types/oas2' -import { Args, Field, GraphQLType } from './types/graphql' +import { Args, Field, GraphQLOperationType } from './types/graphql' import { Operation } from './types/operation' import { PreprocessingData } from './types/preprocessing_data' import { GraphQLSchema, GraphQLObjectType } from 'graphql' @@ -156,6 +156,7 @@ async function translateOpenApiToGraphQL( fillEmptyResponses, addLimitArgument, idFormats, + selectQueryOrMutationField, // Resolver options headers, @@ -190,6 +191,7 @@ async function translateOpenApiToGraphQL( requestOptions, baseUrl, customResolvers, + selectQueryOrMutationField, // Authentication options viewer, @@ -236,6 +238,7 @@ async function translateOpenApiToGraphQL( requestOptions ) + // Check if the operation should be added as a Query or Mutation field if (!operation.isMutation) { let fieldName = Oas3Tools.uncapitalize( operation.responseDefinition.otName @@ -603,3 +606,4 @@ function preliminaryChecks( } export { sanitize } from './oas_3_tools' +export { GraphQLOperationType } from './types/graphql' diff --git a/packages/openapi-to-graphql/src/preprocessor.ts b/packages/openapi-to-graphql/src/preprocessor.ts index 6ef26dfe..1d1b4b56 100644 --- a/packages/openapi-to-graphql/src/preprocessor.ts +++ b/packages/openapi-to-graphql/src/preprocessor.ts @@ -17,6 +17,7 @@ import * as Oas3Tools from './oas_3_tools' import * as deepEqual from 'deep-equal' import debug from 'debug' import { handleWarning, getCommonPropertyNames } from './utils' +import { GraphQLOperationType } from './types/graphql' const preprocessingLog = debug('preprocessing') @@ -174,7 +175,28 @@ export function preprocessOas( const inViewer = securityRequirements.length > 0 && data.options.viewer !== false - const isMutation = method.toLowerCase() !== 'get' + /** + * Whether the operation should be added as a Query or Mutation field. + * By default, all GET operations are Query fields and all other + * operations are Mutation fields. + */ + let isMutation = method.toLowerCase() !== 'get' + + // Option selectQueryOrMutationField can override isMutation + if ( + typeof options.selectQueryOrMutationField === 'object' && + typeof options.selectQueryOrMutationField[oas.info.title] === + 'object' && + typeof options.selectQueryOrMutationField[oas.info.title][path] === + 'object' && + typeof options.selectQueryOrMutationField[oas.info.title][path][ + method + ] === 'number' // This is an TS enum, which is translated to have a integer value + ) { + isMutation = + options.selectQueryOrMutationField[oas.info.title][path][method] === + GraphQLOperationType.Mutation + } // Store determined information for operation const operation: Operation = { diff --git a/packages/openapi-to-graphql/src/resolver_builder.ts b/packages/openapi-to-graphql/src/resolver_builder.ts index 73d220a9..e6fde90d 100644 --- a/packages/openapi-to-graphql/src/resolver_builder.ts +++ b/packages/openapi-to-graphql/src/resolver_builder.ts @@ -282,7 +282,7 @@ export function getResolver({ if ( root && typeof root === 'object' && - typeof root['_openapiToGraphql'] == 'object' + typeof root['_openapiToGraphql'] === 'object' ) { const { authHeaders, authQs, authCookie } = getAuthOptions( operation, @@ -425,7 +425,7 @@ export function getResolver({ if ( root && typeof root === 'object' && - typeof root['_openapiToGraphql'] == 'object' + typeof root['_openapiToGraphql'] === 'object' ) { Object.assign( element['_openapiToGraphql'], @@ -447,7 +447,7 @@ export function getResolver({ if ( root && typeof root === 'object' && - typeof root['_openapiToGraphql'] == 'object' + typeof root['_openapiToGraphql'] === 'object' ) { Object.assign( saneData['_openapiToGraphql'], diff --git a/packages/openapi-to-graphql/src/types/graphql.ts b/packages/openapi-to-graphql/src/types/graphql.ts index 0f5b4b0f..6a51bc06 100644 --- a/packages/openapi-to-graphql/src/types/graphql.ts +++ b/packages/openapi-to-graphql/src/types/graphql.ts @@ -15,6 +15,12 @@ import { GraphQLEnumType } from 'graphql' +export enum GraphQLOperationType { + Query, + Mutation + // TODO: Subscription +} + export type GraphQLType = | GraphQLScalarType | GraphQLObjectType diff --git a/packages/openapi-to-graphql/src/types/options.ts b/packages/openapi-to-graphql/src/types/options.ts index 21ee6d36..07fae087 100644 --- a/packages/openapi-to-graphql/src/types/options.ts +++ b/packages/openapi-to-graphql/src/types/options.ts @@ -5,7 +5,7 @@ // Type imports: import * as NodeRequest from 'request' -import { ResolveFunction } from './graphql' +import { ResolveFunction, GraphQLOperationType } from './graphql' /** * Type definition of the options that users can pass to OpenAPI-to-GraphQL. @@ -74,6 +74,18 @@ export type Options = { */ idFormats?: string[] + /** + * Allows to define the root operation type (Query or Mutation type) of any + * OAS operation explicitly. + * + * OtG will by default make all GET operations Query fields and all other + * operations into Mutation fields. + * + * The field is identifed first by the title of the OAS, then the path of the + * operation, and lastly the method of the operation. + */ + selectQueryOrMutationField?: selectQueryOrMutationFieldType + // Resolver options /** @@ -216,6 +228,18 @@ export type InternalOptions = { */ idFormats?: string[] + /** + * Allows to define the root operation type (Query or Mutation type) of any + * OAS operation explicitly. + * + * OtG will by default make all GET operations Query fields and all other + * operations into Mutation fields. + * + * The field is identifed first by the title of the OAS, then the path of the + * operation, and lastly the method of the operation. + */ + selectQueryOrMutationField?: selectQueryOrMutationFieldType + // Resolver options /** @@ -304,3 +328,11 @@ export type InternalOptions = { */ equivalentToMessages: boolean } + +export type selectQueryOrMutationFieldType = { + [title: string]: { + [path: string]: { + [method: string]: GraphQLOperationType + } + } +} diff --git a/packages/openapi-to-graphql/test/example_api.test.ts b/packages/openapi-to-graphql/test/example_api.test.ts index 1f21804a..36389942 100644 --- a/packages/openapi-to-graphql/test/example_api.test.ts +++ b/packages/openapi-to-graphql/test/example_api.test.ts @@ -12,6 +12,7 @@ import { graphql, parse, validate } from 'graphql' import * as openapiToGraphql from '../lib/index' import { Options } from '../lib/types/options' import { startServer, stopServer } from './example_api_server' +import { GraphQLOperationType } from '../lib/types/graphql' const oas = require('./fixtures/example_oas.json') const PORT = 3002 @@ -1753,3 +1754,79 @@ test('Required properties for input object types', () => { 'AddressInput' ) }) + +test('Option selectQueryOrMutationField', () => { + const query = `{ + __schema { + queryType { + fields { + name + description + } + } + mutationType { + fields { + name + description + } + } + } + }` + + // The users field should exist as a Query field + const promise = graphql(createdSchema, query).then(result => { + expect( + result.data['__schema'].queryType.fields.find(field => { + return field.name === 'user' + }) + ).toEqual({ + name: 'user', + description: + 'Returns a user from the system.\n\nEquivalent to GET /users/{username}' + }) + + expect( + result.data['__schema'].mutationType.fields.find(field => { + return field.name === 'user' + }) + ).toEqual(undefined) + }) + + const options: Options = { + selectQueryOrMutationField: { + 'Example API': { + '/users/{username}': { + get: GraphQLOperationType.Mutation + } + } + } + } + + // The users (now named getUserByUsername) field should exist as a Mutation field + const promise2 = openapiToGraphql + .createGraphQlSchema(oas, options) + .then(({ schema }) => { + const ast = parse(query) + const errors = validate(schema, ast) + expect(errors).toEqual([]) + return graphql(schema, query).then(result => { + expect( + result.data['__schema'].queryType.fields.find(field => { + return field.name === 'getUserByUsername' + }) + ).toEqual(undefined) + + expect( + result.data['__schema'].mutationType.fields.find(field => { + return field.name === 'getUserByUsername' + }) + ).toEqual({ + name: 'getUserByUsername', + description: + 'Returns a user from the system.\n\nEquivalent to GET /users/{username}' + }) + }) + }) + + return Promise.all([promise, promise2]) +}) diff --git a/packages/openapi-to-graphql/test/example_gql_server.js b/packages/openapi-to-graphql/test/example_gql_server.js index 46484ff5..c94ec65c 100644 --- a/packages/openapi-to-graphql/test/example_gql_server.js +++ b/packages/openapi-to-graphql/test/example_gql_server.js @@ -8,7 +8,7 @@ const express = require('express') const graphqlHTTP = require('express-graphql') const app = express() -const openapiToGraphql = require('../lib/index') +const openAPIToGraphQL = require('../lib/index') const oas = require('./fixtures/example_oas.json') // const oas2 = require('./fixtures/example_oas2.json') @@ -24,9 +24,15 @@ const oas3 = require('./fixtures/example_oas3.json') // // requires Box API from API Guru // const oas = yamljs.parse(fs.readFileSync('../tmp/APIs/box.com/content/2.0/swagger.yaml', 'utf8')) -openapiToGraphql +openAPIToGraphQL .createGraphQlSchema(oas, { - idFormats: ['specialIdFormat'] + selectQueryOrMutationField: { + 'Example API': { + '/users/{username}': { + get: openAPIToGraphQL.GraphQLOperationType.Mutation + } + } + } }) .then(({ schema, report }) => { console.log(JSON.stringify(report, null, 2))