apollo-server/packages/apollo-server-hapi/src/index.ts

24 lines
519 B
TypeScript
Raw Normal View History

// Expose types which can be used by both middleware flavors.
export { GraphQLOptions } from 'apollo-server-core';
export {
ApolloError,
toApolloError,
SyntaxError,
ValidationError,
AuthenticationError,
ForbiddenError,
} from 'apollo-server-core';
export {
IRegister,
HapiOptionsFunction,
HapiPluginOptions,
HapiGraphiQLOptionsFunction,
HapiGraphiQLPluginOptions,
graphqlHapi,
graphiqlHapi,
} from './hapiApollo';
// ApolloServer integration
export { registerServer } from './ApolloServer';