-
-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error handling for circular error objs
- Loading branch information
Showing
5 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import { makeExecutableSchema, addErrorLoggingToSchema } from 'graphql-tools'; | ||
import { makeExecutableSchema } from 'graphql-tools'; | ||
|
||
import rootSchemaDef from './rootSchema.graphqls'; | ||
import modules from '../modules'; | ||
import pubsub from './pubsub'; | ||
import log from '../../common/log'; | ||
|
||
const executableSchema = makeExecutableSchema({ | ||
typeDefs: [rootSchemaDef].concat(modules.schemas), | ||
resolvers: modules.createResolvers(pubsub) | ||
}); | ||
|
||
addErrorLoggingToSchema(executableSchema, { log: e => log.error(e) }); | ||
|
||
export default executableSchema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters