moleculer-api
Version:
A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.
40 lines • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var registry_1 = require("./registry");
Object.defineProperty(exports, "SchemaRegistry", { enumerable: true, get: function () { return registry_1.SchemaRegistry; } });
var branch_1 = require("./branch");
Object.defineProperty(exports, "Branch", { enumerable: true, get: function () { return branch_1.Branch; } });
var version_1 = require("./version");
Object.defineProperty(exports, "Version", { enumerable: true, get: function () { return version_1.Version; } });
/*
const example: ServiceAPISchema = {
branch: "master",
protocol: {
GraphQL: {
description: "hello world",
typeDefs: `
extend type Query {
hello: String!
}
`,
resolvers: {
Query: {
hello: `() => "world"`,
},
},
},
REST: {
description: "...",
basePath: "/foo",
routes: [],
},
WebSocket: {
description: "....",
basePath: "/chat",
routes: [],
},
},
policy: {},
};
*/
//# sourceMappingURL=index.js.map