{"size": 562, "ext": "js", "max_stars_repo_path": "graphql/index.js", "max_stars_repo_name": "johnsoftek/graphql-sql-server", "max_stars_repo_stars_event_min_datetime": "2019-03-12T02:50:23.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-12T02:50:23.000Z", "max_issues_repo_path": "graphql/index.js", "max_issues_repo_name": "johnsoftek/graphql-sql-server", "max_issues_repo_issues_event_min_datetime": "2020-07-16T13:41:16.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T22:27:23.000Z", "max_forks_repo_path": "graphql/index.js", "max_forks_repo_name": "johnsoftek/graphql-sql-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 29.5789473684, "max_line_length": 78, "alphanum_fraction": 0.78113879}
import { makeExecutableSchema } from 'graphql-tools'
import { fileLoader, mergeTypes, mergeResolvers } from 'merge-graphql-schemas'
const path = require('path')

import customTypes from './custom-types'
const typesArray = fileLoader(path.resolve(__dirname, 'types'))
typesArray.push(customTypes)
const typeDefs = mergeTypes(typesArray, { all: true })

const resolversArray = fileLoader(path.resolve(__dirname, 'resolvers'))
const resolvers = mergeResolvers(resolversArray)

const schema = makeExecutableSchema({
  typeDefs,
  resolvers
})

export default schema
