moleculer-apollo-server icon indicating copy to clipboard operation
moleculer-apollo-server copied to clipboard

Promise based makeExecutableSchema service method

Open valeeum opened this issue 4 years ago • 0 comments

The ability to override makeExecutableSchema in the service is a great feature that opens up possibilities of doing interesting stuff like schema stitching, merging, etc. However, it would be much more useful if it allowed the response to be promise based.

			/**
			 * Call the `makeExecutableSchema`. If you would like
			 * to manipulate the concatenated typeDefs, or the generated schema,
			 * just overwrite it in your service file.
			 * @param {Object} schemaDef
			 */
			makeExecutableSchema(schemaDef) {
				return makeExecutableSchema(schemaDef);
			},

valeeum avatar Feb 16 '21 06:02 valeeum