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,
|
template: TemplateStringsArray | string,
|
||||||
...substitutions: any[]
|
...substitutions: any[]
|
||||||
) => DocumentNode = gqlTag;
|
) => 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 {
|
export {
|
||||||
|
GraphQLUpload,
|
||||||
|
GraphQLOptions,
|
||||||
|
gql,
|
||||||
|
// Errors
|
||||||
ApolloError,
|
ApolloError,
|
||||||
toApolloError,
|
toApolloError,
|
||||||
SyntaxError,
|
SyntaxError,
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
export { GraphQLOptions, gql } from 'apollo-server-core';
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
GraphQLUpload,
|
||||||
|
GraphQLOptions,
|
||||||
|
gql,
|
||||||
|
// Errors
|
||||||
ApolloError,
|
ApolloError,
|
||||||
toApolloError,
|
toApolloError,
|
||||||
SyntaxError,
|
SyntaxError,
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
export { GraphQLOptions, gql } from 'apollo-server-core';
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
GraphQLUpload,
|
||||||
|
GraphQLOptions,
|
||||||
|
gql,
|
||||||
|
// Errors
|
||||||
ApolloError,
|
ApolloError,
|
||||||
toApolloError,
|
toApolloError,
|
||||||
SyntaxError,
|
SyntaxError,
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
export { GraphQLOptions, gql } from 'apollo-server-core';
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
GraphQLUpload,
|
||||||
|
GraphQLOptions,
|
||||||
|
gql,
|
||||||
|
// Errors
|
||||||
ApolloError,
|
ApolloError,
|
||||||
toApolloError,
|
toApolloError,
|
||||||
SyntaxError,
|
SyntaxError,
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
export {
|
export {
|
||||||
|
GraphQLUpload,
|
||||||
|
GraphQLOptions,
|
||||||
|
gql,
|
||||||
|
// Errors
|
||||||
ApolloError,
|
ApolloError,
|
||||||
toApolloError,
|
toApolloError,
|
||||||
SyntaxError,
|
SyntaxError,
|
||||||
|
@ -6,8 +10,6 @@ export {
|
||||||
AuthenticationError,
|
AuthenticationError,
|
||||||
ForbiddenError,
|
ForbiddenError,
|
||||||
UserInputError,
|
UserInputError,
|
||||||
GraphQLOptions,
|
|
||||||
gql,
|
|
||||||
} from 'apollo-server-core';
|
} from 'apollo-server-core';
|
||||||
|
|
||||||
export * from 'graphql-tools';
|
export * from 'graphql-tools';
|
||||||
|
|
|
@ -7,7 +7,12 @@ import * as http from 'http';
|
||||||
import * as net from 'net';
|
import * as net from 'net';
|
||||||
import { ApolloServer as ApolloServerBase } from 'apollo-server-express';
|
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';
|
export * from './exports';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue