mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00
Enable GraphQLUpload for Apollo Server 2.0 (#1322)
* export GraphQLUpload * fix GraphQLScalar typing
This commit is contained in:
parent
13b796fe34
commit
61b4939327
7 changed files with 30 additions and 11 deletions
|
@ -34,3 +34,7 @@ export const gql: (
|
|||
template: TemplateStringsArray | string,
|
||||
...substitutions: any[]
|
||||
) => DocumentNode = gqlTag;
|
||||
|
||||
import { GraphQLScalarType } from 'graphql';
|
||||
import { GraphQLUpload as UploadScalar } from 'apollo-upload-server';
|
||||
export const GraphQLUpload = UploadScalar as GraphQLScalarType;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
export { GraphQLOptions, gql } from 'apollo-server-core';
|
||||
|
||||
export {
|
||||
GraphQLUpload,
|
||||
GraphQLOptions,
|
||||
gql,
|
||||
// Errors
|
||||
ApolloError,
|
||||
toApolloError,
|
||||
SyntaxError,
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
export { GraphQLOptions, gql } from 'apollo-server-core';
|
||||
|
||||
export {
|
||||
GraphQLUpload,
|
||||
GraphQLOptions,
|
||||
gql,
|
||||
// Errors
|
||||
ApolloError,
|
||||
toApolloError,
|
||||
SyntaxError,
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
export { GraphQLOptions, gql } from 'apollo-server-core';
|
||||
|
||||
export {
|
||||
GraphQLUpload,
|
||||
GraphQLOptions,
|
||||
gql,
|
||||
// Errors
|
||||
ApolloError,
|
||||
toApolloError,
|
||||
SyntaxError,
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
export { GraphQLOptions, gql } from 'apollo-server-core';
|
||||
|
||||
export {
|
||||
GraphQLUpload,
|
||||
GraphQLOptions,
|
||||
gql,
|
||||
// Errors
|
||||
ApolloError,
|
||||
toApolloError,
|
||||
SyntaxError,
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
export {
|
||||
GraphQLUpload,
|
||||
GraphQLOptions,
|
||||
gql,
|
||||
// Errors
|
||||
ApolloError,
|
||||
toApolloError,
|
||||
SyntaxError,
|
||||
|
@ -6,8 +10,6 @@ export {
|
|||
AuthenticationError,
|
||||
ForbiddenError,
|
||||
UserInputError,
|
||||
GraphQLOptions,
|
||||
gql,
|
||||
} from 'apollo-server-core';
|
||||
|
||||
export * from 'graphql-tools';
|
||||
|
|
|
@ -7,7 +7,12 @@ import * as http from 'http';
|
|||
import * as net from 'net';
|
||||
import { ApolloServer as ApolloServerBase } from 'apollo-server-express';
|
||||
|
||||
export { GraphQLOptions, GraphQLExtension, gql } from 'apollo-server-core';
|
||||
export {
|
||||
GraphQLUpload,
|
||||
GraphQLOptions,
|
||||
GraphQLExtension,
|
||||
gql,
|
||||
} from 'apollo-server-core';
|
||||
|
||||
export * from './exports';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue