Module Imports
Some boilerplate for importing all the modules into a graphql schema.js file. I typically comment out the ones I'm not using so I don't have to look them up again.
/**
* GraphQL Library Modules
*/
import {
GraphQLSchema,
GraphQLObjectType,
GraphQLInterfaceType,
GraphQLEnumType,
GraphQLList,
GraphQLNonNull,
GraphQLBoolean,
GraphQLInt,
GraphQLFloat,
GraphQLString,
GraphQLID
} from 'graphql';
/**
* GraphQL-Relay Modules
*/
import {
nodeDefinitions,
fromGlobalId,
globalIdField,
connectionFromArray,
connectionFromPromisedArray,
connectionArgs,
connectionDefinitions,
mutationWithClientMutationId
} from 'graphql-relay';
/**
* Sequelize-Relay Modules
*/
import {
getModelsByClass,
resolveArrayData,
getArrayData,
resolveArrayByClass,
resolveModelsByClass
} from 'sequelize-relay';