UNPKG

372 BJavaScriptView Raw
1"use strict";
2var graphql_1 = require("graphql");
3exports.validateSchema = function (schema) {
4 if (!schema.__schema) {
5 throw new Error('Invalid schema provided!');
6 }
7};
8exports.loadSchema = function (schemaObject) {
9 exports.validateSchema(schemaObject);
10 return graphql_1.buildClientSchema(schemaObject);
11};
12//# sourceMappingURL=scheme-loader.js.map
\No newline at end of file