1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-03 00:20:04 +02:00
copilot/portal-api/lib/models/graphql.js
2017-05-23 10:37:01 +01:00

44 lines
763 B
JavaScript

'use strict';
const Fs = require('fs');
const Path = require('path');
const internals = {
schema: Fs.readFileSync(Path.join(__dirname, 'schema.gql')).toString()
};
exports.options = (data) => {
const getPortal = function (args, request) {
};
const getDeploymentGroups = function (args, request) {
};
const getDeploymentGroup = function (args, request) {
};
const getServiceScales = function (args, request) {
};
const getServiceScale = function (args, request) {
};
return {
schema: internals.schema,
functions: {
portal: getPortal,
deploymentGroups: getDeploymentGroups,
deploymentGroup: getDeploymentGroup,
serviceScales: getServiceScales,
serviceScale: getServiceScale
}
};
};