Skip to content

Commit

Permalink
feat: export ApolloError
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 4, 2020
1 parent 411c32a commit 00a516f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@nodepack/plugin-apollo/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ exports.getCustomField = function (fields, id) {
return null
}
}

exports.ApolloError = require('apollo-server-express').ApolloError
3 changes: 3 additions & 0 deletions packages/@nodepack/plugin-apollo/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DocumentNode, GraphQLResolveInfo } from 'graphql'
import { Config } from 'apollo-server-express'
import ApolloContext from './context'

export { default as ApolloContext, Schema } from './context'

export interface ApolloConfig {
Expand Down Expand Up @@ -36,3 +37,5 @@ export function getCustomField (
fields: CustomField[],
id: string
): CustomField

export { ApolloError } from 'apollo-server-express'

0 comments on commit 00a516f

Please sign in to comment.