Vulcan/packages/nova-apollo/lib/schema.js

20 lines
363 B
JavaScript
Raw Normal View History

2016-12-13 11:32:23 +09:00
import { GraphQLSchema } from 'meteor/nova:lib';
const generateTypeDefs = () => [`
scalar JSON
scalar Date
${GraphQLSchema.getCollectionsSchemas()}
${GraphQLSchema.getAdditionalSchemas()}
type Query {
${GraphQLSchema.queries.join('\n')}
}
type Mutation {
${GraphQLSchema.mutations.join('\n')}
}
`];
export default generateTypeDefs;