File tree 11 files changed +80
-15
lines changed
apollo-server-cloudflare/src
apollo-server-express/src
11 files changed +80
-15
lines changed Original file line number Diff line number Diff line change
1
+ export * from 'graphql-tools' ;
2
+
1
3
export { ApolloServer } from './ApolloServer' ;
2
- export { gql } from 'apollo-server-core' ;
4
+
5
+ export {
6
+ GraphQLUpload ,
7
+ GraphQLOptions ,
8
+ GraphQLExtension ,
9
+ Config ,
10
+ gql ,
11
+ // Errors
12
+ ApolloError ,
13
+ toApolloError ,
14
+ SyntaxError ,
15
+ ValidationError ,
16
+ AuthenticationError ,
17
+ ForbiddenError ,
18
+ UserInputError ,
19
+ // playground
20
+ defaultPlaygroundOptions ,
21
+ PlaygroundConfig ,
22
+ PlaygroundRenderPageOptions ,
23
+ } from 'apollo-server-core' ;
Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ export {
22
22
23
23
export { convertNodeHttpToRequest } from './nodeHttpToRequest' ;
24
24
25
- export { createPlaygroundOptions } from './playground' ;
25
+ export {
26
+ createPlaygroundOptions ,
27
+ PlaygroundConfig ,
28
+ defaultPlaygroundOptions ,
29
+ PlaygroundRenderPageOptions ,
30
+ } from './playground' ;
26
31
27
32
// ApolloServer Base class
28
33
export { ApolloServerBase } from './ApolloServer' ;
Original file line number Diff line number Diff line change @@ -11,7 +11,16 @@ export {
11
11
// by the integration subclasses
12
12
const playgroundVersion = '1.7.2' ;
13
13
14
- export type PlaygroundConfig = Partial < PlaygroundRenderPageOptions > | boolean ;
14
+ // https://stackoverflow.com/a/51365037
15
+ type RecursivePartial < T > = {
16
+ [ P in keyof T ] ?: T [ P ] extends ( infer U ) [ ]
17
+ ? RecursivePartial < U > [ ]
18
+ : T [ P ] extends object ? RecursivePartial < T [ P ] > : T [ P ]
19
+ } ;
20
+
21
+ export type PlaygroundConfig =
22
+ | RecursivePartial < PlaygroundRenderPageOptions >
23
+ | boolean ;
15
24
16
25
export const defaultPlaygroundOptions = {
17
26
version : playgroundVersion ,
Original file line number Diff line number Diff line change 1
1
export {
2
2
GraphQLUpload ,
3
3
GraphQLOptions ,
4
+ GraphQLExtension ,
5
+ Config ,
4
6
gql ,
5
7
// Errors
6
8
ApolloError ,
@@ -10,6 +12,10 @@ export {
10
12
AuthenticationError ,
11
13
ForbiddenError ,
12
14
UserInputError ,
15
+ // playground
16
+ defaultPlaygroundOptions ,
17
+ PlaygroundConfig ,
18
+ PlaygroundRenderPageOptions ,
13
19
} from 'apollo-server-core' ;
14
20
15
21
export * from 'graphql-tools' ;
Original file line number Diff line number Diff line change 1
1
export {
2
2
GraphQLUpload ,
3
3
GraphQLOptions ,
4
+ GraphQLExtension ,
5
+ Config ,
4
6
gql ,
5
7
// Errors
6
8
ApolloError ,
@@ -10,6 +12,10 @@ export {
10
12
AuthenticationError ,
11
13
ForbiddenError ,
12
14
UserInputError ,
15
+ // playground
16
+ defaultPlaygroundOptions ,
17
+ PlaygroundConfig ,
18
+ PlaygroundRenderPageOptions ,
13
19
} from 'apollo-server-core' ;
14
20
15
21
export * from 'graphql-tools' ;
Original file line number Diff line number Diff line change 1
1
export {
2
2
GraphQLUpload ,
3
3
GraphQLOptions ,
4
+ GraphQLExtension ,
5
+ Config ,
4
6
gql ,
5
7
// Errors
6
8
ApolloError ,
@@ -10,6 +12,10 @@ export {
10
12
AuthenticationError ,
11
13
ForbiddenError ,
12
14
UserInputError ,
15
+ // playground
16
+ defaultPlaygroundOptions ,
17
+ PlaygroundConfig ,
18
+ PlaygroundRenderPageOptions ,
13
19
} from 'apollo-server-core' ;
14
20
15
21
export * from 'graphql-tools' ;
Original file line number Diff line number Diff line change 1
1
import * as lambda from 'aws-lambda' ;
2
2
import { ApolloServerBase } from 'apollo-server-core' ;
3
- export { GraphQLOptions , GraphQLExtension } from 'apollo-server-core' ;
4
3
import { GraphQLOptions , Config } from 'apollo-server-core' ;
5
4
import {
6
5
renderPlaygroundPage ,
Original file line number Diff line number Diff line change 1
1
export {
2
2
GraphQLUpload ,
3
3
GraphQLOptions ,
4
+ GraphQLExtension ,
5
+ Config ,
4
6
gql ,
5
7
// Errors
6
8
ApolloError ,
@@ -10,6 +12,10 @@ export {
10
12
AuthenticationError ,
11
13
ForbiddenError ,
12
14
UserInputError ,
15
+ // playground
16
+ defaultPlaygroundOptions ,
17
+ PlaygroundConfig ,
18
+ PlaygroundRenderPageOptions ,
13
19
} from 'apollo-server-core' ;
14
20
15
21
export * from 'graphql-tools' ;
Original file line number Diff line number Diff line change 1
1
export {
2
2
GraphQLUpload ,
3
3
GraphQLOptions ,
4
+ GraphQLExtension ,
5
+ Config ,
4
6
gql ,
5
7
// Errors
6
8
ApolloError ,
@@ -10,6 +12,10 @@ export {
10
12
AuthenticationError ,
11
13
ForbiddenError ,
12
14
UserInputError ,
15
+ // playground
16
+ defaultPlaygroundOptions ,
17
+ PlaygroundConfig ,
18
+ PlaygroundRenderPageOptions ,
13
19
} from 'apollo-server-core' ;
14
20
15
21
export * from 'graphql-tools' ;
Original file line number Diff line number Diff line change @@ -2,12 +2,23 @@ export * from 'graphql-tools';
2
2
export * from 'graphql-subscriptions' ;
3
3
4
4
export {
5
+ gql ,
6
+ GraphQLUpload ,
7
+ GraphQLOptions ,
8
+ GraphQLExtension ,
9
+ Config ,
10
+ // Errors
5
11
ApolloError ,
6
12
toApolloError ,
7
13
SyntaxError ,
8
14
ValidationError ,
9
15
AuthenticationError ,
10
16
ForbiddenError ,
11
17
UserInputError ,
12
- gql ,
18
+ // playground
19
+ defaultPlaygroundOptions ,
20
+ PlaygroundConfig ,
21
+ PlaygroundRenderPageOptions ,
13
22
} from 'apollo-server-core' ;
23
+
24
+ export { CorsOptions } from 'apollo-server-express' ;
Original file line number Diff line number Diff line change @@ -11,16 +11,6 @@ import {
11
11
} from 'apollo-server-express' ;
12
12
import { Config } from 'apollo-server-core' ;
13
13
14
- export {
15
- GraphQLUpload ,
16
- GraphQLOptions ,
17
- GraphQLExtension ,
18
- gql ,
19
- Config ,
20
- } from 'apollo-server-core' ;
21
-
22
- export { CorsOptions } from 'apollo-server-express' ;
23
-
24
14
export * from './exports' ;
25
15
26
16
export interface ServerInfo {
You can’t perform that action at this time.
0 commit comments