apollo-server-hapi: remove subscriptions boolean from register options and check subscriptionsEnabled

This commit is contained in:
Evans Hauser 2018-05-11 11:22:32 -07:00
parent e10bf1d590
commit ee6994b708
No known key found for this signature in database
GPG key ID: 88AF586817F52EEC

View file

@ -10,7 +10,6 @@ export interface ServerRegistration {
app: hapi.Server;
server: ApolloServerBase<hapi.Request>;
path?: string;
subscriptions?: boolean;
}
export interface HapiListenOptions {
@ -49,7 +48,7 @@ export const registerServer = async ({
return h
.response(
renderPlaygroundPage({
subscriptionsEndpoint: server.subscriptions && path,
subscriptionsEndpoint: server.subscriptionsEnabled && path,
endpoint: path,
version: '1.4.0',
}),