Module: gql-module-loader

Loads GraphQL modules
Parameters:
Name Type Description
modules Array Modules to import
Properties
Name Type Description
schema Object The schema of a module
Properties
Name Type Description
typeDefs Object The module's type defs
resolvers Object The module's resolver functions
Source:
Returns:
Loaded GraphQL schema
Type
object
Example
const { moduleLoader } = require('gql-module-loader')
const { schema } = moduleLoader([Root, Auth])