Skip to content

Instantly share code, notes, and snippets.

Yann Leflour yleflour

View GitHub Profile
@icebob
icebob / merge.js
Created Jul 29, 2016
Merge GraphQL schemas & resolvers in modules
View merge.js
let moduleQueries = [];
let moduleTypeDefinitions = [];
let moduleMutations = [];
let moduleResolvers = [];
let files = config.getGlobbedFiles(path.join(__dirname, "**", "*schema.js"));
// Load schema files
files.forEach((file) => {
let moduleSchema = require(path.resolve(file));
You can’t perform that action at this time.