forked from AEB-labs/graphql-weaver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
39 lines (34 loc) · 1.86 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
// Main function
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';
// 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';