diff --git a/src/index.js b/src/index.js index db199134..3d570a08 100644 --- a/src/index.js +++ b/src/index.js @@ -9,35 +9,33 @@ * @flow strict */ +import url from 'url'; import accepts from 'accepts'; +import httpError from 'http-errors'; +import { type $Request, type $Response } from 'express'; import { Source, - validateSchema, parse, validate, execute, formatError, + validateSchema, getOperationAST, specifiedRules, + type ASTVisitor, + type DocumentNode, + type ValidationContext, + type ExecutionArgs, + type ExecutionResult, + type GraphQLError, + type GraphQLSchema, + type GraphQLFieldResolver, + type GraphQLTypeResolver, } from 'graphql'; -import type { ExecutionArgs, ExecutionResult } from 'graphql'; -import httpError from 'http-errors'; -import url from 'url'; import { parseBody } from './parseBody'; import { renderGraphiQL } from './renderGraphiQL'; -import type { - DocumentNode, - GraphQLError, - GraphQLSchema, - GraphQLFieldResolver, - GraphQLTypeResolver, - ValidationContext, - ASTVisitor, -} from 'graphql'; -import type { $Request, $Response } from 'express'; - /** * Used to configure the graphqlHTTP middleware by providing a schema * and other configuration options. diff --git a/src/parseBody.js b/src/parseBody.js index 83777878..7cc57216 100644 --- a/src/parseBody.js +++ b/src/parseBody.js @@ -9,13 +9,13 @@ * @flow strict */ -import contentType from 'content-type'; +import zlib from 'zlib'; import getBody from 'raw-body'; import httpError from 'http-errors'; import querystring from 'querystring'; -import zlib from 'zlib'; +import contentType from 'content-type'; -import type { $Request } from 'express'; +import { type $Request } from 'express'; /** * Provided a "Request" provided by express or connect (typically a node style