Skip to content

Commit cc9cadf

Browse files
committed
improve examples
1 parent 520f04b commit cc9cadf

File tree

7 files changed

+21452
-21252
lines changed

7 files changed

+21452
-21252
lines changed

examples/fullApi/schema.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/* @flow */
22

3-
import fs from 'fs';
4-
import path from 'path';
5-
import { GraphQLSchema, GraphQLObjectType, printSchema } from 'graphql';
3+
import { GraphQLSchema, GraphQLObjectType } from 'graphql';
64
import awsSDK from 'aws-sdk';
75
import { AwsApiParser } from '../../src'; // from 'graphql-compose-aws';
86

@@ -19,6 +17,4 @@ const schema = new GraphQLSchema({
1917
}),
2018
});
2119

22-
fs.writeFileSync(path.resolve(__dirname, './generated/schema.txt'), printSchema(schema));
23-
2420
export default schema;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* @flow */
2+
3+
import fs from 'fs';
4+
import path from 'path';
5+
import { printSchema } from 'graphql';
6+
import schema from '../fullApi/schema';
7+
8+
const output = path.resolve(__dirname, './schema.txt');
9+
fs.writeFileSync(output, printSchema(schema));

0 commit comments

Comments
 (0)