mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
20 lines
No EOL
363 B
JavaScript
20 lines
No EOL
363 B
JavaScript
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; |