mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-16 18:01:28 +00:00
7 lines
319 B
TypeScript
7 lines
319 B
TypeScript
import path from 'path'
|
|
import { fileLoader, mergeResolvers } from 'merge-graphql-schemas'
|
|
|
|
// the files must be correctly evaluated in built and dev state - therefore accept both js & ts files
|
|
const resolversArray = fileLoader(path.join(__dirname, './!(*.spec).(ts|js)'))
|
|
export default mergeResolvers(resolversArray)
|