text: "use strict";
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  const apollo_server_1 = require("apollo-server");
  const controllers_1 = __importDefault(require("./controllers"));
  const resolvers_1 = __importDefault(require("./resolvers"));
  const typeDefs_1 = __importDefault(require("./typeDefs"));
  const server = new apollo_server_1.ApolloServer({
      context: ({ req }) => ({
          controllers: controllers_1.default,
          user: controllers_1.default.user.authenticate(req.token)
      }),
      resolvers: resolvers_1.default,
      typeDefs: typeDefs_1.default
  });
  server.listen().then((url) => {
      console.log(`Server Listen on ${url.port}`);
  });
  