File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
77/* eslint-disable arrow-body-style */
88
99var graphqlHTTP = require ( 'express-graphql' ) ;
10-
11- var _require = require ( 'graphql' ) ,
12- buildSchema = _require . buildSchema ;
13-
1410var fetch = require ( 'node-fetch' ) ;
15-
16- var schema = buildSchema ( '\n type Registry {\n href: String\n ocVersion: String\n type: String\n dependencies: [String]\n }\n\n type Person {\n name: String\n email: String\n }\n\n type Repository {\n type: String\n url: String\n }\n\n type Parameter {\n key: String\n type: String\n mandatory: Boolean\n example: String\n description: String\n }\n\n type Component {\n name: String\n description: String\n version: String\n allVersions: [String]\n author: Person\n repository: Repository\n parameters: [Parameter]\n }\n\n type Query {\n registry: Registry\n component(name: String): Component\n components: [Component]\n }\n' ) ;
11+ var schema = require ( './schema' ) ;
1712
1813var fetchComponent = function ( ) {
1914 var _ref = _asyncToGenerator ( regeneratorRuntime . mark ( function _callee ( url ) {
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var _require = require ( 'graphql' ) ,
4+ buildSchema = _require . buildSchema ;
5+
6+ var schema = buildSchema ( '\n type Registry {\n href: String\n ocVersion: String\n type: String\n dependencies: [String]\n }\n\n type Person {\n name: String\n email: String\n }\n\n type Repository {\n type: String\n url: String\n }\n\n type Parameter {\n key: String\n type: String\n mandatory: Boolean\n example: String\n description: String\n }\n\n type Component {\n name: String\n description: String\n version: String\n allVersions: [String]\n author: Person\n repository: Repository\n parameters: [Parameter]\n }\n\n type Query {\n registry: Registry\n component(name: String): Component\n components: [Component]\n }\n' ) ;
7+
8+ module . exports = schema ;
You can’t perform that action at this time.
0 commit comments