Skip to content

Commit 00a516f

Browse files
committed
feat: export ApolloError
1 parent 411c32a commit 00a516f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/@nodepack/plugin-apollo/src/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,5 @@ exports.getCustomField = function (fields, id) {
8282
return null
8383
}
8484
}
85+
86+
exports.ApolloError = require('apollo-server-express').ApolloError

packages/@nodepack/plugin-apollo/types/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DocumentNode, GraphQLResolveInfo } from 'graphql'
22
import { Config } from 'apollo-server-express'
33
import ApolloContext from './context'
4+
45
export { default as ApolloContext, Schema } from './context'
56

67
export interface ApolloConfig {
@@ -36,3 +37,5 @@ export function getCustomField (
3637
fields: CustomField[],
3738
id: string
3839
): CustomField
40+
41+
export { ApolloError } from 'apollo-server-express'

0 commit comments

Comments
 (0)