Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Sep 23, 2022
1 parent 53b9c34 commit 4f7d34e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
5 changes: 1 addition & 4 deletions packages/server/src/ApolloServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ import {
recommendedCsrfPreventionRequestHeaders,
} from './preventCsrf.js';
import { APQ_CACHE_PREFIX, processGraphQLRequest } from './requestPipeline.js';
import {
newHTTPGraphQLHead,
prettyJSONStringify,
} from './runHttpQuery.js';
import { newHTTPGraphQLHead, prettyJSONStringify } from './runHttpQuery.js';
import { SchemaManager } from './utils/schemaManager.js';
import { isDefined } from './utils/isDefined.js';
import { UnreachableCaseError } from './utils/UnreachableCaseError.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/__tests__/ApolloServer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ describe('ApolloServer executeOperation', () => {
const { result: result2 } = await server.executeOperation({
request: { query: '{ n }' },
contextValue: {
foo: 'asdf'
foo: 'asdf',
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export async function collectCacheControlHintsAndPolicyIfCacheable(
],
});
await server.start();
const response = await server.executeOperation({request:{ query: source }});
const response = await server.executeOperation({
request: { query: source },
});
await server.stop();

expect(response.result.errors).toBeUndefined();
Expand Down
5 changes: 1 addition & 4 deletions packages/server/src/errorNormalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import {
} from 'graphql';
import { ApolloServerErrorCode } from './errors/index.js';
import type { HTTPGraphQLHead } from './externalTypes/http.js';
import {
mergeHTTPGraphQLHead,
newHTTPGraphQLHead,
} from './runHttpQuery.js';
import { mergeHTTPGraphQLHead, newHTTPGraphQLHead } from './runHttpQuery.js';
import { HeaderMap } from './utils/HeaderMap.js';

// This function accepts any value that were thrown and convert it to GraphQLFormattedError.
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/externalTypes/http.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { HeaderMap } from "../utils/HeaderMap.js";
import type { HeaderMap } from '../utils/HeaderMap.js';

// TODO(AS4): Document this interface.
export interface HTTPGraphQLRequest {
Expand Down
5 changes: 1 addition & 4 deletions packages/server/src/requestPipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ import {

import { makeGatewayGraphQLRequestContext } from './utils/makeGatewayGraphQLRequestContext.js';

import {
mergeHTTPGraphQLHead,
newHTTPGraphQLHead,
} from './runHttpQuery.js';
import { mergeHTTPGraphQLHead, newHTTPGraphQLHead } from './runHttpQuery.js';
import type {
ApolloServer,
ApolloServerInternals,
Expand Down

0 comments on commit 4f7d34e

Please sign in to comment.