schema.ts 378 Bytes
import { makeExecutableSchema } from "graphql-tools";
import Query from "./Query";
import Mutation from "./Mutation";
import Types from "./Types";

const typeDefs = require("./typeDefs.gql");
const { GraphQLUpload: Upload } = require("apollo-upload-server");

const resolvers = {
  Query,
  Mutation,
  ...Types
};

export default makeExecutableSchema({ typeDefs, resolvers });