(path: string)
| 12 | } |
| 13 | |
| 14 | export function buildSchemaFromFile(path: string): GraphQLSchema { |
| 15 | return buildSchemaFromString(fs.readFileSync(path).toString()); |
| 16 | } |
| 17 | |
| 18 | export function buildSchemaFromString(raw: string): GraphQLSchema { |
| 19 | const src = new Source(raw); |
no test coverage detected