1 | ;
|
2 | var graphql_1 = require("graphql");
|
3 | exports.validateSchema = function (schema) {
|
4 | if (!schema.__schema) {
|
5 | throw new Error('Invalid schema provided!');
|
6 | }
|
7 | };
|
8 | exports.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 |