Skip to content

Commit

Permalink
Updated naming
Browse files Browse the repository at this point in the history
  • Loading branch information
reaktivo committed Jul 28, 2018
1 parent 1259387 commit dff1d09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/apollo-server-cloud-function/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
RenderPageOptions as PlaygroundRenderPageOptions,
} from '@apollographql/graphql-playground-html';

import { graphqlLambda } from './gqlApollo';
import { graphqlCloudFunction } from './gqlApollo';

export interface CreateHandlerOptions {
cors?: {
Expand Down Expand Up @@ -125,7 +125,10 @@ export class ApolloServer extends ApolloServerBase {

res.set(corsHeaders);

graphqlLambda(this.createGraphQLServerOptions.bind(this))(req, res);
graphqlCloudFunction(this.createGraphQLServerOptions.bind(this))(
req,
res,
);
};
}
}
2 changes: 1 addition & 1 deletion packages/apollo-server-cloud-function/src/gqlApollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from 'apollo-server-core';
import { Headers } from 'apollo-server-env';

export function graphqlLambda(options: GraphQLOptions): any {
export function graphqlCloudFunction(options: GraphQLOptions): any {
if (!options) {
throw new Error('Apollo Server requires options.');
}
Expand Down

0 comments on commit dff1d09

Please sign in to comment.