2016-12-12 10:41:50 +09:00
|
|
|
import Telescope, { GraphQLSchema } from 'meteor/nova:lib';
|
2016-10-19 10:55:19 +02:00
|
|
|
|
2016-11-18 16:01:27 +09:00
|
|
|
const generateTypeDefs = () => [`
|
2016-12-12 10:41:50 +09:00
|
|
|
${GraphQLSchema.getCollectionsSchemas()}
|
|
|
|
${GraphQLSchema.getAdditionalSchemas()}
|
2016-10-29 16:37:33 +09:00
|
|
|
|
2016-11-18 16:01:27 +09:00
|
|
|
type Query {
|
2016-12-12 10:41:50 +09:00
|
|
|
${GraphQLSchema.queries.join('\n')}
|
2016-11-18 16:01:27 +09:00
|
|
|
}
|
2016-10-31 16:19:37 +01:00
|
|
|
|
2016-11-18 16:01:27 +09:00
|
|
|
type Mutation {
|
2016-12-12 10:41:50 +09:00
|
|
|
${GraphQLSchema.mutations.join('\n')}
|
2016-11-18 16:01:27 +09:00
|
|
|
}
|
2016-10-19 10:55:19 +02:00
|
|
|
`];
|
2016-11-18 16:01:27 +09:00
|
|
|
|
|
|
|
export default generateTypeDefs;
|