node_modules.graphql-config.lib.__tests__.utils.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var schema = require('./schema.json');
var http_1 = require("http");
function serveSchema(port) {
if (port === void 0) { port = 33333; }
var handleRequest = function (request, response) {
response.writeHead(200, { 'Content-Type': 'application/json' });
response.end(JSON.stringify(schema));
};
var server = http_1.createServer(handleRequest);
return new Promise(function (resolve) {
server.listen(port, resolve);
});
}
exports.serveSchema = serveSchema;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy