mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
25 lines
536 B
JavaScript
25 lines
536 B
JavaScript
import { GraphQLSchema } from 'meteor/nova:lib';
|
|
|
|
import { makeExecutableSchema } from 'graphql-tools';
|
|
|
|
import { meteorClientConfig } from './client.js';
|
|
|
|
import { createApolloServer } from './server.js';
|
|
import generateTypeDefs from './schema';
|
|
|
|
Meteor.startup(function () {
|
|
const typeDefs = generateTypeDefs();
|
|
|
|
GraphQLSchema.finalSchema = typeDefs;
|
|
|
|
const schema = makeExecutableSchema({
|
|
typeDefs,
|
|
resolvers: GraphQLSchema.resolvers,
|
|
});
|
|
|
|
createApolloServer({
|
|
schema,
|
|
});
|
|
});
|
|
|
|
export { meteorClientConfig };
|