Lambda-School-Labs/prismatopia

View on GitHub
apollo/src/resolvers/index.js

Summary

Maintainability
A
0 mins
Test Coverage
// @ts-check
'use strict'

// All resolvers must be imported here and declared in the resolvers
// object in order to be received by the client. If you are logging
// your resolvers but not seeing anything print to stdout, this is
// the most likely culprit

const Query = require('./Query')
const Mutation = require('./Mutation')
const User = require('./User')

const resolvers = {
  Query,
  Mutation,
  User
}

module.exports = resolvers