This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.ts
46 lines (39 loc) · 2.23 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Main function
import { ExtendedIntrospectionModule } from './src/pipeline/extended-introspection';
export { weaveSchemas, weaveSchemasExt, weaveSchemas as createProxySchema } from './src/weave-schemas';
export { WeavingResult } from './src/weaving-result';
// Configuration
export { WeavingConfig, WeavingConfig as ProxyConfig, EndpointConfig } from './src/config/weaving-config';
export { WeavingErrorHandlingMode } from './src/config/error-handling';
export { WeavingError } from './src/config/errors';
export {
PipelineConfig, PreMergeModuleContext, PostMergeModuleContext, PipelineModule
} from './src/pipeline/pipeline-module';
// GraphQL client
export { GraphQLClient } from './src/graphql-client/graphql-client';
export { HttpGraphQLClient } from './src/graphql-client/http-client';
export { LocalGraphQLClient } from './src/graphql-client/local-client';
export { ClientExecutionResult }from './src/graphql-client/client-execution-result';
// helpers to write custom clients
export { mapErrorLocations } from './src/graphql-client/error-location-helper';
// Extended schema
export { ExtendedSchema, FieldMetadata, LinkConfig, SchemaMetadata } from './src/extended-schema/extended-schema';
export {
EXTENDED_INTROSPECTION_FIELD, getExtendedIntrospectionType, getExtendedIntrospectionData
} from './src/extended-schema/extended-introspection';
// Utilities to write modules
export {
ExtendedSchemaTransformer, transformExtendedSchema, GraphQLFieldConfigMapWithMetadata,
GraphQLFieldConfigWithMetadata, GraphQLNamedFieldConfigWithMetadata
} from './src/extended-schema/extended-schema-transformer';
export { Query } from './src/graphql/common';
export {
SchemaTransformer, transformSchema, FieldsTransformationContext, DirectiveTransformationContext,
FieldTransformationContext, GraphQLNamedFieldConfig, GraphQLNamedInputFieldConfig, InputFieldTransformationContext,
TypeTransformationContext, SchemaTransformationContext
} from 'graphql-transformer';
// some useful modules
export { NamespaceModule }from './src/pipeline/namespaces';
export { TypePrefixesModule }from './src/pipeline/type-prefixes';
export { LinksModule } from './src/pipeline/links';
export { ExtendedIntrospectionModule } from './src/pipeline/extended-introspection';