Skip to content

Instantly share code, notes, and snippets.

Yann Leflour yleflour

Block or report user

Report or block yleflour

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.