mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
26 lines
No EOL
565 B
JavaScript
26 lines
No EOL
565 B
JavaScript
import Telescope, { GraphQLSchema } from 'meteor/nova:lib';
|
|
|
|
import { makeExecutableSchema } from 'graphql-tools';
|
|
|
|
import { meteorClientConfig, client } 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, client }; |