2016-11-03 21:39:09 +09:00
|
|
|
import Telescope from 'meteor/nova:lib';
|
|
|
|
|
2016-10-31 16:19:37 +01:00
|
|
|
import { makeExecutableSchema } from 'graphql-tools';
|
2016-10-28 18:09:41 +02:00
|
|
|
|
|
|
|
import { client } from './client.js';
|
|
|
|
|
|
|
|
import { createApolloServer } from './server.js';
|
|
|
|
import typeDefs from './schema';
|
2016-11-03 21:39:09 +09:00
|
|
|
|
|
|
|
// import resolvers from './resolvers';
|
|
|
|
|
|
|
|
console.log("// Telescope.graphQL.resolvers")
|
|
|
|
console.log(Telescope.graphQL.resolvers)
|
2016-10-28 18:09:41 +02:00
|
|
|
|
|
|
|
const schema = makeExecutableSchema({
|
|
|
|
typeDefs,
|
2016-11-03 21:39:09 +09:00
|
|
|
resolvers: Telescope.graphQL.resolvers,
|
2016-10-28 18:09:41 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
createApolloServer({
|
|
|
|
schema,
|
|
|
|
});
|
|
|
|
|
|
|
|
export { client };
|